Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / requirements-detector / default.nix
blob5acc7ae6ae260ba2fa055f2a6de6621bc8ca9686
1 { lib
2 , astroid
3 , buildPythonPackage
4 , fetchFromGitHub
5 , packaging
6 , poetry-core
7 , poetry-semver
8 , pytestCheckHook
9 , pythonOlder
10 , toml
13 buildPythonPackage rec {
14   pname = "requirements-detector";
15   version = "1.2.2";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "landscapeio";
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-qmrHFQRypBJOI1N6W/Dtc5ss9JGqoPhFlbqrLHcb6vc=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   propagatedBuildInputs = [
32     astroid
33     packaging
34     poetry-semver
35     toml
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   pythonImportsCheck = [
43     "requirements_detector"
44   ];
46   meta = with lib; {
47     description = "Python tool to find and list requirements of a Python project";
48     homepage = "https://github.com/landscapeio/requirements-detector";
49     changelog = "https://github.com/landscapeio/requirements-detector/releases/tag/${version}";
50     license = licenses.mit;
51     maintainers = with maintainers; [ kamadorueda ];
52   };