summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/python-xyz.scm36
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