python3Packages.pomegranate: 0.13.5 -> 0.14.8

This commit is contained in:
Robert Scott 2022-05-29 19:16:21 +01:00
parent 58fa3c321f
commit 17003648fe

View File

@ -15,28 +15,16 @@
buildPythonPackage rec {
pname = "pomegranate";
version = "0.13.5";
version = "0.14.8";
src = fetchFromGitHub {
repo = pname;
owner = "jmschrei";
rev = "v${version}";
sha256 = "1hbxchp3daykkf1fa79a9mh34p78bygqcf1nv4qwkql3gw0pd6l7";
# no tags for recent versions: https://github.com/jmschrei/pomegranate/issues/974
rev = "0652e955c400bc56df5661db3298a06854c7cce8";
sha256 = "16g49nl2bgnh6nh7bd21s393zbksdvgp9l13ww2diwhplj6hlly3";
};
patches = lib.optionals (lib.versionOlder version "13.6") [
# Fix compatibility with recent joblib release, will be part of the next
# pomegranate release after 0.13.5
(fetchpatch {
url = "https://github.com/jmschrei/pomegranate/commit/42d14bebc44ffd4a778b2a6430aa845591b7c3b7.patch";
sha256 = "0f9cx0fj9xkr3hch7jyrn76zjypilh5bqw734caaw6g2m49lvbff";
})
] ++ [
# Likely an upstream test bug and not a real problem:
# https://github.com/jmschrei/pomegranate/issues/939
./disable-failed-on-nextworkx-2.6.patch
] ;
propagatedBuildInputs = [ numpy scipy cython networkx joblib pyyaml ];
checkInputs = [ pandas nose ]; # as of 0.13.5, it depends explicitly on nose, rather than pytest.