Patchwork gnu: Add python-lit.

login
register
mail settings
Submitter Danny Milosavljevic
Date Nov. 24, 2016, 8:31 a.m.
Message ID <20161124083100.29906-1-dannym@scratchpost.org>
Download mbox | patch
Permalink /patch/17822/
State New
Headers show

Comments

Danny Milosavljevic - Nov. 24, 2016, 8:31 a.m.
* gnu/packages/python.scm (python-lit, python2-lit): New variables.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
Danny Milosavljevic - Nov. 24, 2016, 8:35 a.m.
Nevermind, it's already there.

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5e8956f..1032e4e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12409,3 +12409,31 @@  the Flask web framework in Python.  It is similar to package
 @code{python-flask-restful} but supports the @code{python-swagger}
 documentation builder.")
     (license license:expat)))
+
+(define-public python-lit
+  (package
+    (name "python-lit")
+    (version "0.5.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "lit" version))
+        (sha256
+         (base32
+          "135m2b9cwih85g66rjggavck328z7lj37srgpq3jxszbg0g2b91y"))))
+    (build-system python-build-system)
+    (home-page "http://llvm.org/")
+    (synopsis "LLVM Software Testing Tool")
+    (description "@code{lit} is a portable tool for executing LLVM and Clang
+style test suites, summarizing their results, and providing indication of
+failures.")
+    (license license:ncsa)
+    (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))))))