summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-10-04 19:11:51 -0800
committerYuri Victorovich <yuri@FreeBSD.org>2022-10-04 16:20:42 -0700
commit089cd58ec806c6e6f7a22ab269f90401d77889b1 (patch)
treef0ebb0a720763e9f4066fe6b984941ea57fc1d0f /misc
parenttextproc/p5-PDF-Builder: update to 3.024 (diff)
misc/py-dictdiffer: Fix build
Python version comparison procedure thinks that the version 2.7 is greater than 6.0.0 for some reason.
Diffstat (limited to 'misc')
-rw-r--r--misc/py-dictdiffer/Makefile4
-rw-r--r--misc/py-dictdiffer/files/patch-setup.py13
2 files changed, 15 insertions, 2 deletions
diff --git a/misc/py-dictdiffer/Makefile b/misc/py-dictdiffer/Makefile
index 215a005b4c29..14843ac0277c 100644
--- a/misc/py-dictdiffer/Makefile
+++ b/misc/py-dictdiffer/Makefile
@@ -11,8 +11,8 @@ WWW= https://github.com/inveniosoftware/dictdiffer
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>=2.7:devel/py-pytest-runner@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.1.0:devel/py-setuptools_scm@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
diff --git a/misc/py-dictdiffer/files/patch-setup.py b/misc/py-dictdiffer/files/patch-setup.py
new file mode 100644
index 000000000000..1c2800241c52
--- /dev/null
+++ b/misc/py-dictdiffer/files/patch-setup.py
@@ -0,0 +1,13 @@
+- fix the problem that Python thinks that the version 2.7 is greater than 6.0.0 for pytest-runner
+
+--- setup.py.orig 2022-10-04 20:58:57 UTC
++++ setup.py
+@@ -54,7 +54,7 @@ for key, reqs in extras_require.items():
+ extras_require['all'].extend(reqs)
+
+ setup_requires = [
+- 'pytest-runner>=2.7',
++ 'pytest-runner',
+ 'setuptools_scm>=3.1.0',
+ ]
+