diff mbox

[2/3] gnu: Add python-lit, python2-lit.

Message ID 20160803092015.8541-3-dannym@scratchpost.org
State New
Headers show

Commit Message

Danny Milosavljevic Aug. 3, 2016, 9:20 a.m. UTC
* gnu/packages/python.scm (python-lit, python2-lit): New variables.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
diff mbox

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0557ab5..e9e34a9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9804,3 +9804,31 @@  etc.")
     (package
       (inherit base)
       (name "ptpython2"))))
+
+(define-public python-lit
+  (package
+    (name "python-lit")
+    (version "0.5.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+              "https://pypi.python.org/packages/5b/a0/dbed2c8dfb220eb9a5a893257223cd0ff791c0fbc34ce2f1a957fa4b6c6f/"
+              "lit-" version ".tar.gz"))
+        (sha256
+          (base32
+            "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y"))))
+    (build-system python-build-system)
+    (home-page "http://llvm.org/")
+    (synopsis "LLVM Software Testing Tool")
+    (description "@code{lit} is a LLVM Software Testing Tool.")
+    (license bsd-3)
+    (properties `((python2-variant . ,(delay python2-lit))))))
+
+(define-public python2-lit
+  (let ((base (package-with-python2 (strip-python2-variant python-lit))))
+    (package
+      (inherit base)
+      (native-inputs
+       `(("python2-setuptools" ,python2-setuptools)
+         ,@(package-native-inputs base))))))