about summary refs log tree commit diff
path: root/pkgs/tools/misc/pipreqs
diff options
context:
space:
mode:
authornagato.pain <iuns@outlook.fr>2018-12-21 14:11:12 -0800
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-01-15 00:06:49 +0100
commit709c6c46b933a5c344dd43314c0996f5172e2cdf (patch)
tree2a13de9314ee9b25778724f0a1ed8525e87af675 /pkgs/tools/misc/pipreqs
parent14840a99b14fd90c3d5cf0216ee95fc8f25000fa (diff)
pipreqs: init at 0.4.9
Diffstat (limited to 'pkgs/tools/misc/pipreqs')
-rw-r--r--pkgs/tools/misc/pipreqs/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/misc/pipreqs/default.nix b/pkgs/tools/misc/pipreqs/default.nix
new file mode 100644
index 0000000000000..15c5cbc0eb115
--- /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 ];
+  };
+}