From 8aeb675dca6a084b055e2cd8b0c1b1e5065b93de Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 6 Oct 2025 01:54:45 +0100 Subject: [PATCH] gnu: Add python-exitcode. * gnu/packages/python-xyz.scm (python-exitcode): New variable. Change-Id: Id1bf46af21ac5f5dc148b8b9682a552b053a578b --- gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 175f335d2e75b181c66df2dc8971bb83f237a7de..7ed1325311857287125e9b62fbeaf7e9c18e5571 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -804,6 +804,30 @@ implemented in pure Python, and most of them are also implemented in C.") packaging tasks.") (license license:expat))) +(define-public python-exitcode + (package + (name "python-exitcode") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "exitcode" version)) + (sha256 + (base32 "01yybyi4pkvvf4382p28gh4lkxrcyl5vcx2xk95nbsb8011f37mw")))) + (build-system pyproject-build-system) + (arguments + (list #:tests? #f)) ; no tests in PyPI or Git + (native-inputs + (list python-poetry-core + python-setuptools)) + (home-page "https://github.com/rumpelsepp/exitcode") + (synopsis "Preferred system exit codes as defined by sysexits.h") + (description + "This package implements a preferred system exit codes as defined by +@url{https://man.openbsd.org/sysexits, sysexits.h}. This library is inspired by +Rust's @url{https://docs.rs/exitcode, exitcode}.") + (license license:expat))) + (define-public python-fastnumbers (package (name "python-fastnumbers")