apteryx pushed a commit to branch master
in repository guix.

commit 1ed22e239613050045c55ba9b268a39f10af843a
Author: Maxim Cournoyer <maxim.courno...@gmail.com>
AuthorDate: Tue Dec 17 22:51:19 2024 +0900

    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
---
 gnu/packages/python-check.scm | 43 ++++++++++++++++++++++++++++++++-----------
 1 file changed, 32 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index f0d60feab8..53e940a6cf 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -51,6 +51,7 @@
   #:use-module (gnu packages openstack)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages python-build)
+  #:use-module (gnu packages python-science)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
@@ -2297,7 +2298,7 @@ them using any Python VM with basically no runtime 
overhead.")
 (define-public python-nptyping
   (package
     (name "python-nptyping")
-    (version "2.0.0")
+    (version "2.5.0")
     (source (origin
               (method git-fetch)        ;pypi only contains a binary wheel
               (uri (git-reference
@@ -2306,23 +2307,43 @@ them using any Python VM with basically no runtime 
overhead.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0839mcrv5jljq9k9124ssnl1hc1inbxwlwjk72imabsbqssjy9rb"))))
-    (build-system python-build-system)
+                "0m6iq98qi9pl5hcc5k99bvy5w293vrlsdnimxl020i60rfnihgl7"))))
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-before 'build 'set-source-date-epoch
-           (lambda _
-             ;; Otherwise the wheel building test would fail with "ZIP does
-             ;; not support timestamps before 1980".
-             (setenv "SOURCE_DATE_EPOCH" "315532800"))))))
+     (list
+      #:test-flags
+      #~(list
+         ;; Multiple failures due to undefined names (typing package must be
+         ;; too outdated, or perhaps they use a newer pandas).
+         "--ignore=tests/test_mypy.py"
+         "--ignore=tests/pandas_/test_mypy_dataframe.py"
+         "--ignore=tests/pandas_/test_fork_sync.py" ;requires connectivity
+         ;; This test requires 'python-pyright', not packaged.
+         "--ignore=tests/test_pyright.py"
+         ;; This one fails with "Unexpected argument of type <class 'tuple'>".
+         "--ignore=tests/test_typeguard.py"
+         ;; This one runs pip and fails.
+         "--ignore=tests/test_wheel.py")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'set-source-date-epoch
+            (lambda _
+              ;; Otherwise the wheel building test would fail with "ZIP does
+              ;; not support timestamps before 1980".
+              (setenv "SOURCE_DATE_EPOCH" "315532800"))))))
     (native-inputs
      (list python-beartype
+           python-feedparser
            python-mypy
+           python-pandas
+           python-pytest
            python-setuptools
            python-typeguard
            python-wheel))
-    (propagated-inputs (list python-numpy python-typing-extensions))
+    (propagated-inputs
+     (list python-numpy
+           python-typing-extensions
+           python-pandas-stubs))
     (home-page "https://github.com/ramonhagenaars/nptyping";)
     (synopsis "Type hints for Numpy")
     (description "This package provides extensive dynamic type checks for

Reply via email to