Skip to content

Commit

Permalink
Merge pull request NixOS#269443 from aanderse/python3Packages.pulp
Browse files Browse the repository at this point in the history
python3Packages.pulp: add cbc solver
  • Loading branch information
Mindavi authored Dec 14, 2023
2 parents 19275d8 + fea610b commit 58e9a35
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkgs/development/python-modules/pulp/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib
, cbc
, amply
, buildPythonPackage
, fetchFromGitHub
Expand All @@ -21,6 +22,12 @@ buildPythonPackage rec {
hash = "sha256-j0f6OiscJyTqPNyLp0qWRjCGLWuT3HdU1S/sxpnsiMo=";
};

postPatch = ''
sed -i pulp/pulp.cfg.linux \
-e 's|CbcPath = .*|CbcPath = ${cbc}/bin/cbc|' \
-e 's|PulpCbcPath = .*|PulpCbcPath = ${cbc}/bin/cbc|'
'';

propagatedBuildInputs = [
amply
pyparsing
Expand All @@ -34,14 +41,8 @@ buildPythonPackage rec {
"pulp"
];

disabledTests = [
# The solver is not available
"PULP_CBC_CMDTest"
"test_examples"
];

meta = with lib; {
description = "Module to generate generate MPS or LP files";
description = "Module to generate MPS or LP files";
homepage = "https://github.com/coin-or/pulp";
license = licenses.mit;
maintainers = with maintainers; [ teto ];
Expand Down

0 comments on commit 58e9a35

Please sign in to comment.