Loading pkgs/development/python-modules/pgmpy/default.nix +9 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, pythonAtLeast, pythonOlder, # build inputs networkx, Loading Loading @@ -42,6 +43,14 @@ buildPythonPackage { hash = "sha256-d2TNcJQ82XxTWdetLgtKXRpFulAEEzrr+cyRewoA6YI="; }; # TODO: Remove this patch after updating to pgmpy 0.1.26. # The PR https://github.com/pgmpy/pgmpy/pull/1745 will have been merged. # It contains the fix below, among other things, which is why we do not use fetchpatch. postPatch = lib.optionalString (pythonAtLeast "3.12") '' substituteInPlace pgmpy/tests/test_estimators/test_MarginalEstimator.py \ --replace-fail 'self.assert_' 'self.assertTrue' ''; propagatedBuildInputs = [ networkx numpy Loading Loading
pkgs/development/python-modules/pgmpy/default.nix +9 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, pythonAtLeast, pythonOlder, # build inputs networkx, Loading Loading @@ -42,6 +43,14 @@ buildPythonPackage { hash = "sha256-d2TNcJQ82XxTWdetLgtKXRpFulAEEzrr+cyRewoA6YI="; }; # TODO: Remove this patch after updating to pgmpy 0.1.26. # The PR https://github.com/pgmpy/pgmpy/pull/1745 will have been merged. # It contains the fix below, among other things, which is why we do not use fetchpatch. postPatch = lib.optionalString (pythonAtLeast "3.12") '' substituteInPlace pgmpy/tests/test_estimators/test_MarginalEstimator.py \ --replace-fail 'self.assert_' 'self.assertTrue' ''; propagatedBuildInputs = [ networkx numpy Loading