summaryrefslogtreecommitdiff
path: root/databases/py-sqlcipher3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-sqlcipher3/Makefile')
-rw-r--r--databases/py-sqlcipher3/Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/databases/py-sqlcipher3/Makefile b/databases/py-sqlcipher3/Makefile
index 5978f8c65cab..8f87b493f5eb 100644
--- a/databases/py-sqlcipher3/Makefile
+++ b/databases/py-sqlcipher3/Makefile
@@ -1,6 +1,5 @@
PORTNAME= sqlcipher3
-DISTVERSION= 0.5.4
-PORTREVISION= 1
+DISTVERSION= 0.6.0
CATEGORIES= databases python
#MASTER_SITES= PYPI # no tests
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,13 +13,25 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libsqlcipher.so:databases/sqlcipher
-USES= localbase python
-USE_PYTHON= distutils autoplist pytest # unclear how to run tests, see https://github.com/coleifer/sqlcipher3/issues/26
+USES= localbase python ssl
+USE_PYTHON= distutils autoplist
USE_GITHUB= yes
GH_ACCOUNT= coleifer
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
post-install:
- @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sqlcipher3/_sqlite3${PYTHON_EXT_SUFFIX}.so
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sqlcipher3/_sqlite3${PYTHON_TAG}.so
+
+do-test:
+ @cd ${WRKSRC} && \
+ ${CP} ${STAGEDIR}${PYTHON_SITELIBDIR}/sqlcipher3/_sqlite3${PYTHON_TAG}.so sqlcipher3/ && \
+ ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m tests
+
+# tests as of 0.6.0:
+# Ran 345 tests in 0.241s
+#
+# OK (skipped=2)
.include <bsd.port.mk>