Merge pull request #269443 from aanderse/python3Packages.pulp

python3Packages.pulp: add cbc solver
This commit is contained in:
Rick van Schijndel
2023-12-14 23:16:49 +01:00
committed by GitHub
@@ -1,4 +1,5 @@
{ lib
, cbc
, amply
, buildPythonPackage
, fetchFromGitHub
@@ -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
@@ -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 ];