at master 818 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "exitcode"; 11 version = "0.1.0"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.10"; 15 16 src = fetchFromGitHub { 17 owner = "rumpelsepp"; 18 repo = "exitcode"; 19 tag = "v${version}"; 20 hash = "sha256-MZeLwU1gODqH752y/nc9WkUArl48pyq9Vun7tX620No="; 21 }; 22 23 nativeBuildInputs = [ poetry-core ]; 24 25 # Module has no tests 26 doCheck = false; 27 28 pythonImportsCheck = [ "exitcode" ]; 29 30 meta = with lib; { 31 description = "Preferred system exit codes as defined by sysexits.h"; 32 homepage = "https://github.com/rumpelsepp/exitcode"; 33 changelog = "https://github.com/rumpelsepp/exitcode/releases/tag/v${version}"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}