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