2019-04-15 02:21:33 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-12-24 19:43:22 +00:00
|
|
|
, isPy27
|
2019-04-15 02:21:33 +01:00
|
|
|
, pyutilib
|
|
|
|
, appdirs
|
|
|
|
, ply
|
|
|
|
, six
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyomo";
|
|
|
|
version = "5.6.1";
|
2019-12-24 19:43:22 +00:00
|
|
|
disabled = isPy27; # unable to import pyutilib.th
|
2019-04-15 02:21:33 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Pyomo";
|
|
|
|
inherit version;
|
|
|
|
sha256 = "449be9a4c9b3caee7c89dbe5f0e4e5ad0eaeef8be110a860641cd249986e362c";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyutilib
|
|
|
|
appdirs
|
|
|
|
ply
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
rm pyomo/bilevel/tests/test_blp.py \
|
|
|
|
pyomo/version/tests/test_installer.py
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pyomo: Python Optimization Modeling Objects";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://pyomo.org";
|
2019-04-15 02:21:33 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|