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.0.3"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "landscapeio"; 22 repo = pname; 23 rev = version; 24 hash = "sha256-AEXCguf5Q9lU5ygFJUlbc1F637hkQ0wJybbRK7uhB9s="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 astroid 33 packaging 34 poetry-semver 35 toml 36 ]; 37 38 checkInputs = [ 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 license = licenses.mit; 50 maintainers = with maintainers; [ kamadorueda ]; 51 }; 52}