2019-10-26 23:38:16 +02:00
|
|
|
{ python3
|
2016-05-07 05:04:25 +02:00
|
|
|
}:
|
2019-10-26 23:38:16 +02:00
|
|
|
with python3;
|
2016-05-07 05:04:25 +02:00
|
|
|
|
2019-10-26 23:38:16 +02:00
|
|
|
pkgs.buildPythonApplication rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "pypi2nix";
|
2019-10-26 23:38:16 +02:00
|
|
|
version = "2.0.0";
|
|
|
|
src = pkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0w9z07kdnfs96230jag8xgz4wx337bb3q3bvqxn3r31x8fsmz6rr";
|
|
|
|
};
|
|
|
|
checkInputs = with pkgs; [ pytest ];
|
|
|
|
propagatedBuildInputs = with pkgs; [
|
|
|
|
attrs
|
2016-07-25 04:25:51 +02:00
|
|
|
click
|
2019-10-26 23:38:16 +02:00
|
|
|
jinja2
|
|
|
|
nix-prefetch-github
|
|
|
|
packaging
|
|
|
|
parsley
|
|
|
|
setuptools
|
|
|
|
toml
|
2016-09-25 04:42:23 +02:00
|
|
|
];
|
2019-10-26 23:38:16 +02:00
|
|
|
checkPhase = "${python3.interpreter} -m pytest unittests -m 'not nix'";
|
2016-05-07 05:04:25 +02:00
|
|
|
}
|