diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-04 00:57:27 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-04 08:47:51 +0100 |
| commit | 2bd64e9a94d4d9a71fd06df40d9ccfed9910fd1b (patch) | |
| tree | 28d5a7e0b94a37b60511bd8be32a58e406b88f2b | |
| parent | d1871891b0c438dee2e04830670fd44b5d1e0fc1 (diff) | |
gnu: python-clyent: Update to 1.2.2.
* gnu/packages/python-xyz.scm (python-clyent): Update to 1.2.2.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-backend>: Set it.
<phases>: Add versioneer.
[native-inputs]: Add python-setuptools, python-versioneer.
[description]: Improve style.
Change-Id: I5d305bb058fdc927092ee81c7f8553584a4cce6a
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/python-xyz.scm | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a319fdacca..739641524e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -4596,21 +4596,39 @@ and function call return values in a human-readable way.") (define-public python-clyent (package (name "python-clyent") - (version "1.2.1") + (version "1.2.2") (source (origin - (method url-fetch) - (uri (pypi-uri "clyent" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/Anaconda-Platform/clyent") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj")))) - (build-system python-build-system) + (base32 "0vi9nkd4hnvycwwpz9xip1drc5zn7bdwff1pz3azmyvh8v4hsias")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-backend #~'unittest + #:phases + #~(modify-phases %standard-phases + ;; Replace version manually because clyent uses + ;; versioneer, which requires git metadata. + (add-after 'unpack 'versioneer + (lambda _ + (invoke "versioneer" "install") + (substitute* "setup.py" + (("version=versioneer.get_version\\(),") + (string-append "version='" #$version "',")))))))) (native-inputs - (list python-mock)) + (list python-mock + python-setuptools + python-versioneer)) (home-page "https://github.com/Anaconda-Platform/clyent") (synopsis "Command line client library") - (description "Clyent is a Python command line utility library. It is used -by @code{binstar}, @code{binstar-build}, and @code{chalmers}.") + (description + "Clyent is a Python command line utility library. It is used by +@code{binstar}, @code{binstar-build}, and @code{chalmers}.") (license license:bsd-3))) (define-public python-babel |
