[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: python-pygit2: Update to 0.27.3.
From: |
guix-commits |
Subject: |
01/01: gnu: python-pygit2: Update to 0.27.3. |
Date: |
Wed, 9 Jan 2019 13:26:10 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit ab7aa06cac4f0695d08ac84eb715b98962c49fa9
Author: Efraim Flashner <address@hidden>
Date: Wed Jan 9 20:25:39 2019 +0200
gnu: python-pygit2: Update to 0.27.3.
* gnu/packages/python.scm (python-pygit2): Update to 0.27.3.
[arguments]: Add custom phase to compile with cffi support. Add custom
phase to not require specific versions of python-cffi.
[native-inputs]: Add python-pytest.
---
gnu/packages/python.scm | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5a32681..507cdd3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3344,20 +3344,38 @@ color scales, and color space conversion easy. It has
support for:
(define-public python-pygit2
(package
(name "python-pygit2")
- (version "0.26.4")
+ (version "0.27.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pygit2" version))
(sha256
(base32
- "145k3fsd21274swia7mcc7n3kzlbd47xmg55mxsjdb5d9b7fr858"))))
+ "046ahvsb7a20sgvscqfm3cb32sp3sii4gim9vz7zzrkf7yz16xlv"))))
(build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ ;; Remove after the next update. See:
+ ;; https://github.com/libgit2/pygit2/pull/851
+ (add-after 'unpack 'compile-with-cffi
+ (lambda _
+ (substitute* "setup.py"
+ (("install_requires")
+ "setup_requires=['cffi'],\n install_requires"))
+ #t))
+ (add-after 'unpack 'fix-dependency-versioning
+ (lambda _
+ (substitute* "setup.py"
+ (("<") "<="))
+ #t)))))
(propagated-inputs
`(("python-six" ,python-six)
("python-cffi" ,python-cffi)
("libgit2" ,libgit2)
("python-tox" ,python-tox)))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
(home-page "https://github.com/libgit2/pygit2")
(synopsis "Python bindings for libgit2")
(description "Pygit2 is a set of Python bindings to the libgit2 shared