nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

python310Packages.requirements-detector: 0.7 -> 1.0.3

+28 -19
+28 -19
pkgs/development/python-modules/requirements-detector/default.nix
··· 1 - { buildPythonPackage 2 - , fetchFromGitHub 3 - , isPy27 4 - , lib 5 - 6 - # pythonPackages 1 + { lib 7 2 , astroid 8 - , pytest 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , packaging 6 + , poetry-core 7 + , poetry-semver 8 + , pytestCheckHook 9 + , pythonOlder 10 + , toml 9 11 }: 10 12 11 13 buildPythonPackage rec { 12 14 pname = "requirements-detector"; 13 - version = "0.7"; 14 - disabled = isPy27; 15 + version = "1.0.3"; 16 + format = "pyproject"; 17 + 18 + disabled = pythonOlder "3.7"; 15 19 16 20 src = fetchFromGitHub { 17 21 owner = "landscapeio"; 18 22 repo = pname; 19 23 rev = version; 20 - sha256 = "sha256-DdPNqbTsL2+GUp8vppqUSa0mUVMxk73MCcpwo8u51tU="; 24 + hash = "sha256-AEXCguf5Q9lU5ygFJUlbc1F637hkQ0wJybbRK7uhB9s="; 21 25 }; 26 + 27 + nativeBuildInputs = [ 28 + poetry-core 29 + ]; 22 30 23 31 propagatedBuildInputs = [ 24 32 astroid 33 + packaging 34 + poetry-semver 35 + toml 25 36 ]; 26 37 27 38 checkInputs = [ 28 - pytest 39 + pytestCheckHook 29 40 ]; 30 41 31 - checkPhase = '' 32 - pytest 33 - ''; 42 + pythonImportsCheck = [ 43 + "requirements_detector" 44 + ]; 34 45 35 - meta = { 46 + meta = with lib; { 36 47 description = "Python tool to find and list requirements of a Python project"; 37 48 homepage = "https://github.com/landscapeio/requirements-detector"; 38 - license = lib.licenses.mit; 39 - maintainers = with lib.maintainers; [ 40 - kamadorueda 41 - ]; 49 + license = licenses.mit; 50 + maintainers = with maintainers; [ kamadorueda ]; 42 51 }; 43 52 }