Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.pulp: fix by adding new dependency amply #97904

Merged
merged 2 commits into from
Sep 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/amply/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/pulp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, fetchPypi
, buildPythonPackage
, pyparsing
, amply
}:

buildPythonPackage rec {
Expand All @@ -13,7 +14,7 @@ buildPythonPackage rec {
sha256 = "9d8ecf532868cc31fa9ff59ee5d5b2049600c5c902c18c794a2bad677c1f92e5";
};

propagatedBuildInputs = [ pyparsing ];
propagatedBuildInputs = [ pyparsing amply ];

# only one test that requires an extra
doCheck = false;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down