Patchwork [02/18] gnu: Add python-fastimport.

login
register
mail settings
Submitter ng0
Date Oct. 2, 2016, 11 a.m.
Message ID <20161002110054.2297-3-ngillmann@runbox.com>
Download mbox | patch
Permalink /patch/16174/
State New
Headers show

Comments

ng0 - Oct. 2, 2016, 11 a.m.
From: ng0 <ng0@we.make.ritual.n0.is>

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

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d18aa79..001545e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1451,6 +1451,31 @@  software.")
 (define-public python2-extras
   (package-with-python2 python-extras))
 
+(define-public python-fastimport
+  (package
+    (name "python-fastimport")
+    (version "0.9.6")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "fastimport" version))
+              (sha256
+               (base32
+                "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f)) ; No tests
+    (home-page "htps://github.com/jelmer/python-fastimport")
+    (synopsis "VCS fastimport/fastexport parser")
+    (description
+     "Library for parsing the fastimport VCS serialization format")
+    (license license:gpl2+)))
+
+(define-public python2-fastimport
+  (package
+    (inherit (package-with-python2
+              (strip-python2-variant python-fastimport)))
+    (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
+
 (define-public python-mimeparse
   (package
     (name "python-mimeparse")