summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-01-31 01:09:33 +0100
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:36 +0100
commitc5a8f822d076a0499a1cd0f7456e040d407795f1 (patch)
treed5082c8d328dfa1f96db3fabc49acbc56d6bd6b0 /gnu/packages
parenta63620b659b1638fc48ccd831993bd43d0d31852 (diff)
gnu: python-immutables: Remove python-mypy native-input.
* gnu/packages/python-xyz.scm (python-immutables): [origin]: Use git-fetch to use upstream test-data directory. [native-inputs]: Remove python-mypy. [arguments]<#:phases>: Add phase to remove python-mypy native-input. Change-Id: I783413ec475e5a4084ae84ca2afcd5244a396c23 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-xyz.scm17
1 files changed, 13 insertions, 4 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ebe86aa6a35..af9e017b4cf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17122,13 +17122,22 @@ native modules.")
(version "0.21")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "immutables" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/MagicStack/immutables")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0jpw9nr2mbzqykigjhqa3a095bx7krwsnmjcxcpj944p8kqglpxm"))))
+ (base32 "1p5g20y7di5xglk6yyhb010vdmz73q9fsxpq0cm2gksp8mj856y1"))))
(build-system pyproject-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-mypy-dependency
+ (lambda _
+ (delete-file "tests/test_mypy.py")
+ (delete-file "tests/conftest.py"))))))
(native-inputs
- (list python-mypy python-pytest python-setuptools python-wheel))
+ (list python-pytest python-setuptools python-wheel))
(home-page "https://github.com/MagicStack/immutables")
(synopsis "High-performance immutable mapping type for Python")
(description