Merge pull request #97904 from risicle/ris-pulp-fix

pythonPackages.pulp: fix by adding new dependency amply
This commit is contained in:
Matthieu Coudron 2020-09-13 15:12:35 +02:00 committed by GitHub
commit 7bd0b8e284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,37 @@
{ stdenv
, fetchPypi
, buildPythonPackage
, setuptools_scm
, docutils
, pyparsing
}:
buildPythonPackage rec {
pname = "amply";
version = "0.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "1j2dqdz1y1nbyw33qq89v0f5rkmqfbga72d9hax909vpcapm6pbf";
};
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;
};
}

View file

@ -2,6 +2,7 @@
, fetchPypi
, buildPythonPackage
, pyparsing
, amply
}:
buildPythonPackage rec {
@ -13,7 +14,7 @@ buildPythonPackage rec {
sha256 = "9d8ecf532868cc31fa9ff59ee5d5b2049600c5c902c18c794a2bad677c1f92e5";
};
propagatedBuildInputs = [ pyparsing ];
propagatedBuildInputs = [ pyparsing amply ];
# only one test that requires an extra
doCheck = false;

View file

@ -270,6 +270,8 @@ in {
amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { };
amply = callPackage ../development/python-modules/amply { };
amqp = callPackage ../development/python-modules/amqp { };
amqplib = callPackage ../development/python-modules/amqplib { };