Merge pull request #257636 from fabaff/exitcode

python311Packages.exitcode: init at 0.1.0
This commit is contained in:
Fabian Affolter 2023-09-28 00:38:34 +02:00 committed by GitHub
commit b710d9572d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "exitcode";
version = "0.1.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "rumpelsepp";
repo = "exitcode";
rev = "refs/tags/v${version}";
hash = "sha256-MZeLwU1gODqH752y/nc9WkUArl48pyq9Vun7tX620No=";
};
nativeBuildInputs = [
poetry-core
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"exitcode"
];
meta = with lib; {
description = "Preferred system exit codes as defined by sysexits.h";
homepage = "https://github.com/rumpelsepp/exitcode";
changelog = "https://github.com/rumpelsepp/exitcode/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -3636,6 +3636,8 @@ self: super: with self; {
exrex = callPackage ../development/python-modules/exrex { };
exitcode = callPackage ../development/python-modules/exitcode { };
extractcode = callPackage ../development/python-modules/extractcode { };
extractcode-7z = callPackage ../development/python-modules/extractcode/7z.nix {