diff options
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r-- | gnu/packages/python-science.scm | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 58bf22effb..33d29536bb 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -978,23 +978,38 @@ cross-validation.") (define-public python-tdda (package (name "python-tdda") - (version "2.0.9") + (version "2.2.17") (source (origin (method url-fetch) (uri (pypi-uri "tdda" version)) (sha256 - (base32 "1xs91s8b7cshjcqw88qsrjh10xly799k5rf2ycawqfz2mw8sy3br")))) + (base32 "1l2ph60m20ii4ljgd81wccpp5p8p2m81irr97k7850s2l1qnikcw")))) (build-system pyproject-build-system) (arguments - '(#:phases (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "tdda" "test"))))))) + (list + #:test-flags + #~(list + ;; One test fails with error: AssertionError: False is not true : 5 + ;; lines are different, starting at line 1 + "--deselect=tdda/test_tdda.py::TestOne::test_ddiff_values_output") + #:phases + #~(modify-phases %standard-phases + ;; "datetime.UTC" is not availalbe in Python 3.10 but in + ;; 3.11 it's present + ;; <https://docs.python.org/3/library/datetime.html#datetime.UTC>. + (add-after 'unpack 'fix-Python3.11-datetime.UTC + (lambda _ + (substitute* (find-files "." "\\.py") + (("datetime.UTC") + "datetime.timezone.utc"))))))) (native-inputs (list python-numpy + python-chardet python-pandas + python-pyarrow + python-pytest + python-rich python-setuptools python-wheel)) (home-page "https://www.stochasticsolutions.com") |