summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2019-06-25 10:55:17 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-06-26 16:24:58 +0200
commit724a350c87583a5bfd2c0ff440e1f3d40f66b2a3 (patch)
tree1e51de5e5e444b2104910d50f8b1e6ee8d2e4b01
parent3e8f76d8017e35f056b8c8311c15331c4f8cc4d0 (diff)
downloadpatches-724a350c87583a5bfd2c0ff440e1f3d40f66b2a3.tar
patches-724a350c87583a5bfd2c0ff440e1f3d40f66b2a3.tar.gz
gnu: Add python-setuptools-git.
* gnu/packages/python-xyz.scm (python-setuptools-git): New variable.
-rw-r--r--gnu/packages/python-xyz.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9018f1644d..d84f6bea35 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13479,6 +13479,37 @@ belong to tagged versions.")
(define-public python2-setuptools-scm-git-archive
(package-with-python2 python-setuptools-scm-git-archive))
+(define-public python-setuptools-git
+ (package
+ (name "python-setuptools-git")
+ (version "1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "setuptools-git" version))
+ (sha256
+ (base32
+ "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; This is needed for tests.
+ (add-after 'unpack 'configure-git
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (invoke "git" "config" "--global" "user.email" "guix")
+ (invoke "git" "config" "--global" "user.name" "guix")
+ #t)))))
+ (native-inputs
+ `(("git" ,git-minimal)))
+ (home-page "https://github.com/msabramo/setuptools-git")
+ (synopsis "Setuptools revision control system plugin for Git")
+ (description
+ "This package provides a plugin for Setuptools for revision control with
+Git.")
+ (license license:bsd-3)))
+
(define-public python-pyclipper
(package
(name "python-pyclipper")