mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 18:42:15 +00:00
25 lines
495 B
Nix
25 lines
495 B
Nix
{ python3
|
|
}:
|
|
with python3;
|
|
|
|
pkgs.buildPythonApplication rec {
|
|
pname = "pypi2nix";
|
|
version = "2.0.0";
|
|
src = pkgs.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0w9z07kdnfs96230jag8xgz4wx337bb3q3bvqxn3r31x8fsmz6rr";
|
|
};
|
|
checkInputs = with pkgs; [ pytest ];
|
|
propagatedBuildInputs = with pkgs; [
|
|
attrs
|
|
click
|
|
jinja2
|
|
nix-prefetch-github
|
|
packaging
|
|
parsley
|
|
setuptools
|
|
toml
|
|
];
|
|
checkPhase = "${python3.interpreter} -m pytest unittests -m 'not nix'";
|
|
}
|