summaryrefslogtreecommitdiff
path: root/databases/py-sqlcipher3
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-sqlcipher3')
-rw-r--r--databases/py-sqlcipher3/Makefile21
-rw-r--r--databases/py-sqlcipher3/distinfo6
2 files changed, 19 insertions, 8 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>
diff --git a/databases/py-sqlcipher3/distinfo b/databases/py-sqlcipher3/distinfo
index ce12513ae4ca..a997bd8b1a98 100644
--- a/databases/py-sqlcipher3/distinfo
+++ b/databases/py-sqlcipher3/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1734268699
-SHA256 (coleifer-sqlcipher3-0.5.4_GH0.tar.gz) = f3508ffb973a09d584e390fa91d777ac7837c17adef64b5cbec40be6596ada4f
-SIZE (coleifer-sqlcipher3-0.5.4_GH0.tar.gz) = 64730
+TIMESTAMP = 1767405199
+SHA256 (coleifer-sqlcipher3-0.6.0_GH0.tar.gz) = a889234e2000cc0864380b0faf90a5fd71d08e019d94fbefd7d0d4932aaf5872
+SIZE (coleifer-sqlcipher3-0.6.0_GH0.tar.gz) = 2705465