summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm32
1 files changed, 25 insertions, 7 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dd6526ca0c2..f4eff89d392 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14344,16 +14344,34 @@ sophisticated version manipulation.")
(version "0.6.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pypytools" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/antocuni/pypytools/")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0ag5xyzagprji0m2pkqsfy8539s003mn41pl6plbmh6iwi9w0h51"))))
- (build-system python-build-system)
- (arguments (list #:tests? #f)) ; no tests
+ (base32 "1nmq4gsw3hcayj2d96n8n166h0wnmp7n28fqswcn562hx57mlh05"))
+ (patches (search-patches "python-pypytools-python-3-fixes.patch"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; These tests are using deprecated py.code module.
+ #:test-flags
+ #~(list
+ "--deselect=pypytools/testing/test_codegen.py::test_def__default_args"
+ "--deselect=pypytools/testing/test_codegen.py::test_def_"
+ "--deselect=pypytools/testing/test_codegen.py::test_compile"
+ "--ignore=pypytools/testing/test_unroll.py"
+ ;; clone_func returns an object of the wrong type.
+ "--deselect=pypytools/testing/test_util.py::test_clonefunc")))
+ (native-inputs
+ (list python-freezegun
+ python-numpy
+ python-pytest
+ python-setuptools))
(propagated-inputs (list python-py))
(home-page "https://github.com/antocuni/pypytools/")
- (synopsis
- "Tools to use PyPy-specific features, with CPython fallbacks")
+ (synopsis "Tools to use PyPy-specific features, with CPython fallbacks")
(description
"This package provides a collection of useful tools to use PyPy-specific
features, with CPython fallbacks.")