aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorloader <loader@FreeBSD.org>2018-04-24 14:30:56 +0800
committerloader <loader@FreeBSD.org>2018-04-24 14:30:56 +0800
commit1443d2969850d4e29e5a6d25865080c505a268c5 (patch)
tree02ef1edc0c22f5e131f160313cd4b72996942b7c /security
parent3ff1223f791e0187528ac9ff9f3b9cf7eafd4c5a (diff)
downloadfreebsd-ports-gnome-1443d2969850d4e29e5a6d25865080c505a268c5.tar.gz
freebsd-ports-gnome-1443d2969850d4e29e5a6d25865080c505a268c5.tar.zst
freebsd-ports-gnome-1443d2969850d4e29e5a6d25865080c505a268c5.zip
security/py-obfsproxy-tor: Fix runtime dependency error
- Change runtime dependency entry point Twisted_Core back to Twisted - Update checksum for CHEESESHOP - Add test target Reviewed by: cs, koobs Approved by: cs (maintainer), koobs (ports) Differential Revision: https://reviews.freebsd.org/D13452 MFH: 2018Q2
Diffstat (limited to 'security')
-rw-r--r--security/py-obfsproxy-tor/Makefile4
-rw-r--r--security/py-obfsproxy-tor/distinfo6
-rw-r--r--security/py-obfsproxy-tor/files/patch-setup.py15
3 files changed, 10 insertions, 15 deletions
diff --git a/security/py-obfsproxy-tor/Makefile b/security/py-obfsproxy-tor/Makefile
index 22c1636fcf2f..bd067aa067b2 100644
--- a/security/py-obfsproxy-tor/Makefile
+++ b/security/py-obfsproxy-tor/Makefile
@@ -20,6 +20,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyptlib>=0.0.5:security/py-pyptlib@${FLAVOR}
${PYTHON_PKGNAMEPREFIX}pycrypto>=2.1:security/py-pycrypto@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${FLAVOR}
USES= python:2.7
USE_PYTHON= distutils autoplist
@@ -28,4 +29,7 @@ NO_ARCH= yes
PYDISTUTILS_PKGNAME= obfsproxy
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
+
.include <bsd.port.mk>
diff --git a/security/py-obfsproxy-tor/distinfo b/security/py-obfsproxy-tor/distinfo
index 9b61d4228533..18b9419780f5 100644
--- a/security/py-obfsproxy-tor/distinfo
+++ b/security/py-obfsproxy-tor/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1519975368
-SHA256 (obfsproxy-0.2.13.tar.gz) = c29582f2f5b0316cbc7184e0529a5b246dfeeabd4e6c4dcb05b800256d6c9dd6
-SIZE (obfsproxy-0.2.13.tar.gz) = 95813
+TIMESTAMP = 1512989600
+SHA256 (obfsproxy-0.2.13.tar.gz) = 1e26c2faef1cfcf856ddf60e9647058a7c78fb0d47f05b58a0f847ed7cc41a66
+SIZE (obfsproxy-0.2.13.tar.gz) = 93435
diff --git a/security/py-obfsproxy-tor/files/patch-setup.py b/security/py-obfsproxy-tor/files/patch-setup.py
index 7769437ab64e..06f7cddb2ce3 100644
--- a/security/py-obfsproxy-tor/files/patch-setup.py
+++ b/security/py-obfsproxy-tor/files/patch-setup.py
@@ -1,19 +1,10 @@
---- setup.py.orig 2014-12-31 15:34:31 UTC
+--- setup.py.orig 2014-08-21 09:28:57 UTC
+++ setup.py
-@@ -31,12 +31,14 @@ setup(
- install_requires = [
+@@ -32,7 +32,6 @@ setup(
'setuptools',
'PyCrypto',
-- 'Twisted',
+ 'Twisted',
- 'argparse',
-+ 'Twisted_Core',
'pyptlib >= 0.0.6',
'pyyaml'
],
-
-+ #if sys.version_info < (2, 7):
-+ # install_requires.append('argparse')
-+
- extras_require = {
- 'SOCKS': ["txsocksx"]
- }