summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-17 15:32:05 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-18 12:54:06 +0100
commita7cb580f662ffa2dfcb2e7f10037762d5687b460 (patch)
tree5860ad0f8b034568b2598ad2ec8efcc4e8cfa759 /gnu/packages/python-xyz.scm
parent90ce202ad718e843a0ca53708b4e1d5249d95eb3 (diff)
gnu: python-pypytools: Switch to pyproject.
* gnu/packages/patches/python-pypytools-python-3-fixes.patch: New file. * gnu/local.mk: Record patch. * gnu/packages/python-xyz.scm (python-pypytools): [source]: Switch to git-fetch. Add patch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Ignore failing tests. [native-inputs]: Add python-freezegun, python-numpy, python-pytest, python-setuptools. Change-Id: Icbafeb0f35ed651cbbd5f3477f65771247b8390d Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
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.")