guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: Add python2-cssutils.


From: Andreas Enge
Subject: 01/01: gnu: Add python2-cssutils.
Date: Sat, 14 Feb 2015 18:32:11 +0000

andreas pushed a commit to branch master
in repository guix.

commit 092e86f54f5be0481fbe7bd42432e34fe6d7b1df
Author: Andreas Enge <address@hidden>
Date:   Sat Feb 14 19:25:55 2015 +0100

    gnu: Add python2-cssutils.
    
    * gnu/packages/python.scm (python2-cssutils): New variable.
---
 gnu/packages/python.scm |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 697c832..bd2e497 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3105,3 +3105,42 @@ capabilities to the Python interpreter.")
     (license (x11-style
                "file://README"
                "See 'README' in the distribution."))))
+
+(define-public python2-cssutils
+  (package
+    (name "python2-cssutils")
+    (version "1.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+              "https://pypi.python.org/packages/source/c/cssutils/cssutils-";
+              version
+              ".zip"))
+        (sha256
+          (base32
+            "1bwim1353r4hqiir73sn4sc43y7ymh09qx0kly7vj048blppc125"))))
+    (build-system python-build-system)
+    (native-inputs
+      `(("python2-mock" ,python2-mock) ; for the tests
+        ("unzip" ,unzip))) ; for unpacking the source
+    (inputs
+      `(("python2-setuptools" ,python2-setuptools)))
+    (arguments
+     `(#:python ,python-2 ; Otherwise tests fail with a syntax error.
+       #:tests? #f ; The tests apparently download an external URL.
+       #:phases
+       (alist-replace
+        'unpack
+        (lambda* (#:key source #:allow-other-keys)
+          (and (zero? (system* "unzip" source))
+               (chdir "cssutils-1.0")))
+        %standard-phases)))
+    (home-page "http://cthedot.de/cssutils/";)
+    (synopsis
+      "CSS Cascading Style Sheets library for Python")
+    (description
+      "Cssutils is a Python package for parsing and building CSS
+Cascading Style Sheets.  Currently it provides a DOM only and no rendering
+options.")
+    (license lgpl3+)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]