diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2024-01-16 11:37:07 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2024-01-16 11:37:07 +0100 |
commit | 8721b9c1fb9c0bbab95477548f417551ad2b03dd (patch) | |
tree | 7defe07bbf7ba4646778b856d432195236d86e1c /gnu | |
parent | 21f5d20d68e0359f8111ccb936905649c70db9c1 (diff) |
gnu: Add python-nr-util.
* gnu/packages/python-xyz.scm (python-nr-util): New variable.
Change-Id: I26dda5e5bc03334fb476e3f1fd2fa6aaf93a91c3
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-xyz.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 58a1a2b3cd..3973b02ce7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1579,6 +1579,48 @@ library in pure Python.") class.") (license license:expat))) +(define-public python-nr-util + (package + (name "python-nr-util") + (version "0.8.12") + (source + (origin + (method url-fetch) + (uri (pypi-uri "nr.util" version)) + (sha256 + (base32 "1x0l4811dskwrk83l2xzdcldx2iazlrx5wxkg41jz7fr6ch9qm54")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #false ;there are none + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-build-system + (lambda _ + (substitute* "pyproject.toml" + (("^config =.*") "config = []\n")))) + (add-after 'install 'fix-name + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((sitedir (site-packages inputs outputs)) + (dist-info + (string-append sitedir "/nr_util-" #$version ".dist-info"))) + (substitute* (string-append dist-info "/METADATA") + (("Name: nr-util") + "Name: nr.util")) + (substitute* (string-append dist-info "/RECORD") + (("nr_util") "nr.util")) + (rename-file dist-info + (string-append sitedir + "/nr.util-" + #$version ".dist-info")))))))) + (propagated-inputs (list python-deprecated python-typing-extensions)) + (native-inputs (list python-poetry-core)) + (home-page "https://github.com/NiklasRosenstein/python-nr.util") + (synopsis "General purpose Python utility library") + (description "This package provides a general purpose Python utility +library.") + (license license:expat))) + (define-public python-slixmpp (package (name "python-slixmpp") |