Archived
1
0
Fork 0

gnu: python-opentsne: Update to 0.7.1.

* gnu/packages/machine-learning.scm (python-opentsne): Update to 0.7.1.
This commit is contained in:
Vinicius Monego 2023-05-06 15:25:11 -03:00
parent eb7312401e
commit be18d943ba
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -1361,7 +1361,7 @@ for k-neighbor-graph construction and approximate nearest neighbor search.")
(define-public python-opentsne (define-public python-opentsne
(package (package
(name "python-opentsne") (name "python-opentsne")
(version "0.6.1") (version "0.7.1")
(source (source
(origin (origin
(method git-fetch) ; no tests in PyPI release (method git-fetch) ; no tests in PyPI release
@ -1370,27 +1370,23 @@ for k-neighbor-graph construction and approximate nearest neighbor search.")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "124nid27lfq1ipfjd2gkynqcmb4khisjb4r05jv42ckfkk4dbsxs")))) (base32 "12wp98mh67v6v683yi7wbv8zhpafrfz21z349bww4wgi2q7bl3il"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
;; Benchmarks require the 'macosko2015' data files. ;; Benchmarks require the 'macosko2015' data files.
(add-after 'unpack 'delete-benchmark (add-after 'unpack 'delete-benchmark
(lambda _ (lambda _ (delete-file-recursively "benchmarks")))
(delete-file-recursively "benchmarks")))
(add-after 'unpack 'skip-test (add-after 'unpack 'skip-test
(lambda _ ;; TODO: figure out why this test fails. (lambda _ ;; TODO: figure out why this test fails.
(substitute* "tests/test_correctness.py" (substitute* "tests/test_correctness.py"
(("def test_iris\\(self\\)") "def _test_iris(self)")))) (("def test_iris\\(self\\)") "def _test_iris(self)"))))
;; Numba needs a writable dir to cache functions. ;; Numba needs a writable dir to cache functions.
(add-before 'check 'set-numba-cache-dir (add-before 'check 'set-numba-cache-dir
(lambda _ (lambda _ (setenv "NUMBA_CACHE_DIR" "/tmp"))))))
(setenv "NUMBA_CACHE_DIR" "/tmp")))))) (native-inputs (list python-cython))
(native-inputs (inputs (list fftw))
(list python-cython))
(inputs
(list fftw))
(propagated-inputs (propagated-inputs
(list python-numpy python-pynndescent python-scikit-learn (list python-numpy python-pynndescent python-scikit-learn
python-scipy)) python-scipy))