1{ buildPythonPackage
2, fetchFromGitHub
3, isPy27
4, lib
5
6# pythonPackages
7, astroid
8, pytest
9}:
10
11buildPythonPackage rec {
12 pname = "requirements-detector";
13 version = "0.6";
14 disabled = isPy27;
15
16 src = fetchFromGitHub {
17 owner = "landscapeio";
18 repo = pname;
19 rev = version;
20 sha256 = "1sfmm7daz0kpdx6pynsvi6qlfhrzxx783l1wb69c8dfzya4xssym";
21 };
22
23 propagatedBuildInputs = [
24 astroid
25 ];
26
27 checkInputs = [
28 pytest
29 ];
30
31 checkPhase = ''
32 pytest
33 '';
34
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 };
43}