diff --git a/pkgs/tools/misc/pipreqs/default.nix b/pkgs/tools/misc/pipreqs/default.nix new file mode 100644 index 000000000000..15c5cbc0eb11 --- /dev/null +++ b/pkgs/tools/misc/pipreqs/default.nix @@ -0,0 +1,24 @@ +{ lib, python2Packages }: + +# Using python 2 because when packaging with python 3 pipreqs fails to parse python 2 code. +python2Packages.buildPythonApplication rec { + pname = "pipreqs"; + version = "0.4.9"; + + src = python2Packages.fetchPypi { + inherit pname version; + sha256 = "cec6eecc4685967b27eb386037565a737d036045f525b9eb314631a68d60e4bc"; + }; + + propagatedBuildInputs = with python2Packages; [ yarg docopt ]; + + # Tests requires network access. Works fine without sandboxing + doCheck = false; + + meta = with lib; { + description = "Generate requirements.txt file for any project based on imports"; + homepage = https://github.com/bndr/pipreqs; + license = licenses.asl20; + maintainers = with maintainers; [ psyanticy ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2ba9ac670cd5..965dd133e33b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4857,6 +4857,8 @@ with pkgs; pirate-get = callPackage ../tools/networking/pirate-get { }; + pipreqs = callPackage ../tools/misc/pipreqs { }; + pius = callPackage ../tools/security/pius { }; pixiewps = callPackage ../tools/networking/pixiewps {};