nixpkgs/pkgs/development/python-modules/amply/default.nix
2020-11-05 15:46:56 -08:00

38 lines
746 B
Nix

{ stdenv
, fetchPypi
, buildPythonPackage
, setuptools_scm
, docutils
, pyparsing
}:
buildPythonPackage rec {
pname = "amply";
version = "0.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "cb12dcb49d16b168c02be128a1527ecde50211e4bd94af76ff4e67707f5a2d38";
};
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [
docutils
pyparsing
];
checkPhase = ''
python tests/test_amply.py
'';
pythonImportsCheck = [ "amply" ];
meta = with stdenv.lib; {
homepage = "https://github.com/willu47/amply";
description = ''
Allows you to load and manipulate AMPL/GLPK data as Python data structures
'';
maintainers = with maintainers; [ ris ];
license = licenses.epl10;
};
}