Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / requirements-detector / default.nix
blob0d91cbc7509fdc3e8042166727305bca1516fdad
1 { buildPythonPackage
2 , fetchFromGitHub
3 , isPy27
4 , lib
6 # pythonPackages
7 , astroid
8 , pytest
9 }:
11 buildPythonPackage rec {
12   pname = "requirements-detector";
13   version = "0.6";
14   disabled = isPy27;
16   src = fetchFromGitHub {
17     owner = "landscapeio";
18     repo = pname;
19     rev = version;
20     sha256 = "1sfmm7daz0kpdx6pynsvi6qlfhrzxx783l1wb69c8dfzya4xssym";
21   };
23   propagatedBuildInputs = [
24     astroid
25   ];
27   checkInputs = [
28     pytest
29   ];
31   checkPhase = ''
32     pytest
33   '';
35   meta = {
36     description = "Python tool to find and list requirements of a Python project";
37     homepage = "https://github.com/landscapeio/requirements-detector";
38     license = lib.licenses.mit;
39     maintainers = with lib.maintainers; [
40       kamadorueda
41     ];
42   };