diff options
| -rw-r--r-- | gnu/packages/python-xyz.scm | 75 |
1 files changed, 52 insertions, 23 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f4c6edec046..28117898414 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7459,34 +7459,63 @@ a certain expected condition.") (define-public python-pomegranate (package (name "python-pomegranate") - (version "0.14.8") - (source (origin - (method url-fetch) - (uri (pypi-uri "pomegranate" version)) - (sha256 - (base32 - "0gb9srkbxzlkjyfizvxkw5y0bvnfcyiaxapz0hrdaba8j096b5i2")) - (modules '((guix build utils))) - ;; Delete generated Cython C files. - (snippet - '(for-each delete-file (find-files "." "\\.c$"))))) + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jmschrei/pomegranate") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0arx5wik4ywna7k7g5y3ggwz98fl1hgap0278pph3c77ap8afqd7")))) (build-system pyproject-build-system) (arguments (list - ;; XXX: Update to python@3.11 broke some python-nose functionality. - ;; Tests are broken but the package itself is most likely fine. - #:tests? #f)) - (propagated-inputs - (list python-joblib - python-networkx - python-numpy - python-pyyaml - python-scipy)) + ;; tests: 830 passed, 19 deselected, 529 warnings + #:test-flags + #~(list #$@(map (lambda (test) (string-append "--deselect=" + "tests/distributions/" + test)) + ;; _pickle.UnpicklingError: Weights only load failed. + (list "test_bernoulli.py::test_serialization" + "test_categorical.py::test_serialization" + "test_exponential.py::test_serialization" + "test_gamma.py::test_serialization" + "test_independent_component.py::test_serialization" + "test_normal_diagonal.py::test_serialization" + "test_normal_full.py::test_serialization" + "test_poisson.py::test_serialization" + "test_student_t.py::test_serialization" + "test_uniform.py::test_serialization" + ;; Arrays are not almost equal to 3 decimals + "test_categorical.py::test_sample" + "test_independent_component.py::test_sample" + "test_joint_categorical.py::test_sample" + "test_joint_categorical.py::test_sample")) + #$@(map (lambda (test) (string-append "--deselect=" + "tests/" + test)) + ;; _pickle.UnpicklingError: Weights only load failed. + (list "test_bayes_classifier.py::test_serialization" + "test_gmm.py::test_serialization" + "test_kmeans.py::test_serialization" + ;; Arrays are not almost equal to 3 decimals + "test_bayesian_network.py::test_sample" + "test_gmm.py::test_sample" + "test_markov_chain.py::test_sample" + "test_markov_chain.py::test_sample"))))) (native-inputs (list python-cython - python-pandas - python-setuptools - python-wheel)) + python-pytest + python-setuptools)) + (propagated-inputs + (list python-apricot-select + python-networkx + python-numpy + python-scikit-learn + python-scipy + python-pytorch)) (home-page "https://pypi.python.org/pypi/pomegranate/") (synopsis "Graphical models library for Python") (description |
