Subject: [PATCH 03/18] gnu: Add python-dulwich.

From: [email-masked]
Date: Tue, 14 Feb 2017 20:15:48 +0000

From: ng0 <[email-masked]>

* gnu/packages/python.scm (python-dulwich): New variable.
---
 gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4019cc01b..aaa6ba111 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -763,6 +763,39 @@ NetCDF files can also be read and modified.  Python-HDF4 is a fork of
 (define-public python2-hdf4
   (package-with-python2 python-hdf4))
 
+(define-public python-dulwich
+  (package
+    (name "python-dulwich")
+    (version "0.14.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "dulwich" version))
+       (sha256
+        (base32
+         "14xsyxha6qyxxyf0ma3zv1sy31iy22vzwayk519n7a1gwzk4j7vw"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f)) ;Swift module not yet ported to python3, 5 tests fail
+    (inputs
+     `(("python-mock" ,python-mock)
+       ("python-gevent" ,python-gevent)
+       ("python-geventhttpclient" ,python-geventhttpclient)
+       ("python-fastimport" ,python-fastimport)))
+    (home-page "https://www.dulwich.io/")
+    (synopsis "Python Git Library")
+    (description
+     "Dulwich is a Python implementation of the Git file formats and
+protocols, which does not depend on Git itself.  All functionality is
+available in pure Python.")
+    (license (list license:asl2.0 license:gpl2+))
+    (properties `((python2-variant . ,(delay python2-dulwich))))))
+
+(define-public python2-dulwich
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-dulwich)))))
+
 (define-public python-h5py
   (package
     (name "python-h5py")
-- 
2.11.1