2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2022-11-04 12:27:35 +00:00
|
|
|
, amply
|
2020-06-18 07:06:33 +00:00
|
|
|
, buildPythonPackage
|
2022-11-04 12:27:35 +00:00
|
|
|
, fetchFromGitHub
|
2020-06-18 07:06:33 +00:00
|
|
|
, pyparsing
|
2022-11-04 12:27:35 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
2020-06-18 07:06:33 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-11-04 12:27:35 +00:00
|
|
|
pname = "pulp";
|
|
|
|
version = "2.7.0";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coin-or";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-j0f6OiscJyTqPNyLp0qWRjCGLWuT3HdU1S/sxpnsiMo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
amply
|
|
|
|
pyparsing
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-04 12:27:35 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pulp"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# The solver is not available
|
|
|
|
"PULP_CBC_CMDTest"
|
|
|
|
"test_examples"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-11-04 12:27:35 +00:00
|
|
|
description = "Module to generate generate MPS or LP files";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/coin-or/pulp";
|
|
|
|
license = licenses.mit;
|
2022-11-04 12:27:35 +00:00
|
|
|
maintainers = with maintainers; [ teto ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|