aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/requirements-detector
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/requirements-detector')
-rw-r--r--nixpkgs/pkgs/development/python-modules/requirements-detector/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/requirements-detector/default.nix b/nixpkgs/pkgs/development/python-modules/requirements-detector/default.nix
new file mode 100644
index 00000000000..0d91cbc7509
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/requirements-detector/default.nix
@@ -0,0 +1,43 @@
+{ buildPythonPackage
+, fetchFromGitHub
+, isPy27
+, lib
+
+# pythonPackages
+, astroid
+, pytest
+}:
+
+buildPythonPackage rec {
+ pname = "requirements-detector";
+ version = "0.6";
+ disabled = isPy27;
+
+ src = fetchFromGitHub {
+ owner = "landscapeio";
+ repo = pname;
+ rev = version;
+ sha256 = "1sfmm7daz0kpdx6pynsvi6qlfhrzxx783l1wb69c8dfzya4xssym";
+ };
+
+ propagatedBuildInputs = [
+ astroid
+ ];
+
+ checkInputs = [
+ pytest
+ ];
+
+ checkPhase = ''
+ pytest
+ '';
+
+ meta = {
+ description = "Python tool to find and list requirements of a Python project";
+ homepage = "https://github.com/landscapeio/requirements-detector";
+ license = lib.licenses.mit;
+ maintainers = with lib.maintainers; [
+ kamadorueda
+ ];
+ };
+}