2017-09-11 23:13:54 +02:00
|
|
|
# Created by: Yuri Victorovich
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pyaxo
|
2017-10-20 16:27:44 +02:00
|
|
|
PORTVERSION= 0.8.2
|
security/py-pyaxo: Add missing dependency
net-im/py-unmessage currently fails at run-time with the following error:
File "/usr/local/lib/python2.7/site-packages/unmessage/cli.py", line 9, in <module>
from pyaxo import b2a
File "/usr/local/lib/python2.7/site-packages/pyaxo.py", line 27, in <module>
import sqlite3
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
This change adds the appropriate and missing dependency on
databases/py-sqlite3.
While I'm here:
- Verbosify pytest output (one test per line) and print skipped reasons,
which can be very useful during QA.
- Pet portlint (extra item in USES/USE_x section: "NO_ARCH".)
Reported by: DanDare (via IRC, via net-im/py-unmessage)
Approved by: portmgr (blanket(s): missing dependencies, ports compliance)
MFH: 2019Q3
2019-09-15 13:51:20 +02:00
|
|
|
PORTREVISION= 1
|
2017-09-11 23:13:54 +02:00
|
|
|
CATEGORIES= security net python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2018-02-25 01:40:37 +01:00
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
2017-09-11 23:13:54 +02:00
|
|
|
COMMENT= Python implementation of the Axolotl ratchet protocol
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2018-06-20 19:05:41 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}passlib>=1.6.1:security/py-passlib@${PY_FLAVOR} \
|
security/py-pyaxo: Add missing dependency
net-im/py-unmessage currently fails at run-time with the following error:
File "/usr/local/lib/python2.7/site-packages/unmessage/cli.py", line 9, in <module>
from pyaxo import b2a
File "/usr/local/lib/python2.7/site-packages/pyaxo.py", line 27, in <module>
import sqlite3
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
This change adds the appropriate and missing dependency on
databases/py-sqlite3.
While I'm here:
- Verbosify pytest output (one test per line) and print skipped reasons,
which can be very useful during QA.
- Pet portlint (extra item in USES/USE_x section: "NO_ARCH".)
Reported by: DanDare (via IRC, via net-im/py-unmessage)
Approved by: portmgr (blanket(s): missing dependencies, ports compliance)
MFH: 2019Q3
2019-09-15 13:51:20 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pynacl>=1.0.1:security/py-pynacl@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
|
2018-06-20 19:05:41 +02:00
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
|
2017-09-11 23:13:54 +02:00
|
|
|
|
|
|
|
USES= python:2.7
|
|
|
|
USE_PYTHON= autoplist distutils
|
security/py-pyaxo: Add missing dependency
net-im/py-unmessage currently fails at run-time with the following error:
File "/usr/local/lib/python2.7/site-packages/unmessage/cli.py", line 9, in <module>
from pyaxo import b2a
File "/usr/local/lib/python2.7/site-packages/pyaxo.py", line 27, in <module>
import sqlite3
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
This change adds the appropriate and missing dependency on
databases/py-sqlite3.
While I'm here:
- Verbosify pytest output (one test per line) and print skipped reasons,
which can be very useful during QA.
- Pet portlint (extra item in USES/USE_x section: "NO_ARCH".)
Reported by: DanDare (via IRC, via net-im/py-unmessage)
Approved by: portmgr (blanket(s): missing dependencies, ports compliance)
MFH: 2019Q3
2019-09-15 13:51:20 +02:00
|
|
|
|
2017-09-11 23:13:54 +02:00
|
|
|
NO_ARCH= yes
|
|
|
|
|
2017-10-20 16:27:44 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "/'pytest-runner',/d" ${WRKSRC}/setup.py
|
|
|
|
|
|
|
|
do-test:
|
security/py-pyaxo: Add missing dependency
net-im/py-unmessage currently fails at run-time with the following error:
File "/usr/local/lib/python2.7/site-packages/unmessage/cli.py", line 9, in <module>
from pyaxo import b2a
File "/usr/local/lib/python2.7/site-packages/pyaxo.py", line 27, in <module>
import sqlite3
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
This change adds the appropriate and missing dependency on
databases/py-sqlite3.
While I'm here:
- Verbosify pytest output (one test per line) and print skipped reasons,
which can be very useful during QA.
- Pet portlint (extra item in USES/USE_x section: "NO_ARCH".)
Reported by: DanDare (via IRC, via net-im/py-unmessage)
Approved by: portmgr (blanket(s): missing dependencies, ports compliance)
MFH: 2019Q3
2019-09-15 13:51:20 +02:00
|
|
|
@(cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs)
|
2017-10-20 16:27:44 +02:00
|
|
|
|
2017-09-11 23:13:54 +02:00
|
|
|
.include <bsd.port.mk>
|