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