summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-12-17 22:51:19 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2024-12-17 23:43:58 +0900
commit1ed22e239613050045c55ba9b268a39f10af843a (patch)
treeabd25ec573d5b6af3cb6ed6b38528cd4bb5cb92d /gnu/packages/python-check.scm
parentd940343abb9e715acc565da6389788cb27fdb2ac (diff)
gnu: python-nptyping: Update to 2.5.0.
This reinstates commit 843bec9a15eb3f3293ddfeefde97bde461ced7ee, with necessary changes for the test suite to pass. * gnu/packages/python-check.scm (python-nptyping): Update to 2.5.0. [arguments]: Add #:test-flags. [native-inputs]: Add python-feedparser, python-pandas, python-pytest Change-Id: I352cb042cfa11de43993ec3bdcbc0b3008750755
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm43
1 files changed, 32 insertions, 11 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index f0d60feab88..53e940a6cfd 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -51,6 +51,7 @@
51 #:use-module (gnu packages openstack) 51 #:use-module (gnu packages openstack)
52 #:use-module (gnu packages perl) 52 #:use-module (gnu packages perl)
53 #:use-module (gnu packages python-build) 53 #:use-module (gnu packages python-build)
54 #:use-module (gnu packages python-science)
54 #:use-module (gnu packages python-web) 55 #:use-module (gnu packages python-web)
55 #:use-module (gnu packages python-xyz) 56 #:use-module (gnu packages python-xyz)
56 #:use-module (gnu packages qt) 57 #:use-module (gnu packages qt)
@@ -2297,7 +2298,7 @@ them using any Python VM with basically no runtime overhead.")
2297(define-public python-nptyping 2298(define-public python-nptyping
2298 (package 2299 (package
2299 (name "python-nptyping") 2300 (name "python-nptyping")
2300 (version "2.0.0") 2301 (version "2.5.0")
2301 (source (origin 2302 (source (origin
2302 (method git-fetch) ;pypi only contains a binary wheel 2303 (method git-fetch) ;pypi only contains a binary wheel
2303 (uri (git-reference 2304 (uri (git-reference
@@ -2306,23 +2307,43 @@ them using any Python VM with basically no runtime overhead.")
2306 (file-name (git-file-name name version)) 2307 (file-name (git-file-name name version))
2307 (sha256 2308 (sha256
2308 (base32 2309 (base32
2309 "0839mcrv5jljq9k9124ssnl1hc1inbxwlwjk72imabsbqssjy9rb")))) 2310 "0m6iq98qi9pl5hcc5k99bvy5w293vrlsdnimxl020i60rfnihgl7"))))
2310 (build-system python-build-system) 2311 (build-system pyproject-build-system)
2311 (arguments 2312 (arguments
2312 `(#:phases 2313 (list
2313 (modify-phases %standard-phases 2314 #:test-flags
2314 (add-before 'build 'set-source-date-epoch 2315 #~(list
2315 (lambda _ 2316 ;; Multiple failures due to undefined names (typing package must be
2316 ;; Otherwise the wheel building test would fail with "ZIP does 2317 ;; too outdated, or perhaps they use a newer pandas).
2317 ;; not support timestamps before 1980". 2318 "--ignore=tests/test_mypy.py"
2318 (setenv "SOURCE_DATE_EPOCH" "315532800")))))) 2319 "--ignore=tests/pandas_/test_mypy_dataframe.py"
2320 "--ignore=tests/pandas_/test_fork_sync.py" ;requires connectivity
2321 ;; This test requires 'python-pyright', not packaged.
2322 "--ignore=tests/test_pyright.py"
2323 ;; This one fails with "Unexpected argument of type <class 'tuple'>".
2324 "--ignore=tests/test_typeguard.py"
2325 ;; This one runs pip and fails.
2326 "--ignore=tests/test_wheel.py")
2327 #:phases
2328 #~(modify-phases %standard-phases
2329 (add-before 'build 'set-source-date-epoch
2330 (lambda _
2331 ;; Otherwise the wheel building test would fail with "ZIP does
2332 ;; not support timestamps before 1980".
2333 (setenv "SOURCE_DATE_EPOCH" "315532800"))))))
2319 (native-inputs 2334 (native-inputs
2320 (list python-beartype 2335 (list python-beartype
2336 python-feedparser
2321 python-mypy 2337 python-mypy
2338 python-pandas
2339 python-pytest
2322 python-setuptools 2340 python-setuptools
2323 python-typeguard 2341 python-typeguard
2324 python-wheel)) 2342 python-wheel))
2325 (propagated-inputs (list python-numpy python-typing-extensions)) 2343 (propagated-inputs
2344 (list python-numpy
2345 python-typing-extensions
2346 python-pandas-stubs))
2326 (home-page "https://github.com/ramonhagenaars/nptyping") 2347 (home-page "https://github.com/ramonhagenaars/nptyping")
2327 (synopsis "Type hints for Numpy") 2348 (synopsis "Type hints for Numpy")
2328 (description "This package provides extensive dynamic type checks for 2349 (description "This package provides extensive dynamic type checks for