···
···
30
-
# tag = "v${version}";
32
-
rev = "e9162731f4f109b7b17ecffde768734cacdb839b";
33
-
hash = "sha256-vVoAoZ+mph11ZfINT+yxRyk9rXv6FBDgxBz56P2K95Y=";
25
+
tag = "v${version}";
26
+
hash = "sha256-p2Gn0FXnsAHvRUeAqx4M1KH0+XvDl3fmUZZ7MiMvPSs=";
36
-
# _pickle.UnpicklingError: Weights only load failed.
37
-
# https://pytorch.org/docs/stable/generated/torch.load.html
40
-
tests/distributions/test_bernoulli.py \
41
-
tests/distributions/test_categorical.py \
42
-
tests/distributions/test_exponential.py \
43
-
tests/distributions/test_gamma.py \
44
-
tests/distributions/test_independent_component.py \
45
-
tests/distributions/test_normal_diagonal.py \
46
-
tests/distributions/test_normal_full.py \
47
-
tests/distributions/test_poisson.py \
48
-
tests/distributions/test_student_t.py \
49
-
tests/distributions/test_uniform.py \
50
-
tests/test_bayes_classifier.py \
52
-
tests/test_kmeans.py \
54
-
'torch.load(".pytest.torch")' \
55
-
'torch.load(".pytest.torch", weights_only=False)'
build-system = [ setuptools ];
···
75
-
disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
47
+
# Fix tests for pytorch 2.6
49
+
name = "python-2.6.patch";
50
+
url = "https://github.com/jmschrei/pomegranate/pull/1142/commits/9ff5d5e2c959b44e569937e777b26184d1752a7b.patch";
51
+
hash = "sha256-BXsVhkuL27QqK/n6Fa9oJCzrzNcL3EF6FblBeKXXSts=";
55
+
pytestFlagsArray = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
# AssertionError: Arrays are not almost equal to 6 decimals
77
-
"=tests/distributions/test_normal_full.py::test_fit"
78
-
"=tests/distributions/test_normal_full.py::test_from_summaries"
79
-
"=tests/distributions/test_normal_full.py::test_serialization"
57
+
"--deselect=tests/distributions/test_normal_full.py::test_fit"
58
+
"--deselect=tests/distributions/test_normal_full.py::test_from_summaries"
59
+
"--deselect=tests/distributions/test_normal_full.py::test_serialization"