depot/third_party/nixpkgs/pkgs/development/python-modules/pyomo/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

43 lines
786 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pyutilib
, appdirs
, ply
, six
, nose
}:
buildPythonPackage rec {
pname = "pyomo";
version = "5.6.1";
disabled = isPy27; # unable to import pyutilib.th
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";
homepage = "http://pyomo.org";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}