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.7";
14 disabled = isPy27;
15
16 src = fetchFromGitHub {
17 owner = "landscapeio";
18 repo = pname;
19 rev = version;
20 sha256 = "sha256-DdPNqbTsL2+GUp8vppqUSa0mUVMxk73MCcpwo8u51tU=";
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}