blob: a0fc01838b8b40e77a9493f39a20c06966546527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
cbc,
amply,
buildPythonPackage,
fetchFromGitHub,
pyparsing,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pulp";
version = "2.8.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "coin-or";
repo = "pulp";
tag = version;
hash = "sha256-lpbk1GeC8F/iLGV8G5RPHghnaM9eL82YekUYEt9+mvc=";
};
postPatch = ''
sed -i pulp/pulp.cfg.linux \
-e 's|CbcPath = .*|CbcPath = ${cbc}/bin/cbc|' \
-e 's|PulpCbcPath = .*|PulpCbcPath = ${cbc}/bin/cbc|'
'';
propagatedBuildInputs = [
amply
pyparsing
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pulp" ];
meta = {
description = "Module to generate MPS or LP files";
mainProgram = "pulptest";
homepage = "https://github.com/coin-or/pulp";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teto ];
};
}
|