1{ lib 2, astroid 3, buildPythonPackage 4, fetchFromGitHub 5, packaging 6, poetry-core 7, poetry-semver 8, pytestCheckHook 9, pythonOlder 10, toml 11}: 12 13buildPythonPackage rec { 14 pname = "requirements-detector"; 15 version = "1.2.2"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "landscapeio"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-qmrHFQRypBJOI1N6W/Dtc5ss9JGqoPhFlbqrLHcb6vc="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 astroid 33 packaging 34 poetry-semver 35 toml 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "requirements_detector" 44 ]; 45 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 }; 53}