guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: python-xmlschema: Update to 1.1.0.


From: guix-commits
Subject: 02/03: gnu: python-xmlschema: Update to 1.1.0.
Date: Sun, 26 Jan 2020 08:04:50 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit f8a94609d3c068d9bbd01632652941fba0b3e937
Author: Marius Bakke <address@hidden>
AuthorDate: Sun Jan 26 12:49:17 2020 +0100

    gnu: python-xmlschema: Update to 1.1.0.
    
    * gnu/packages/xml.scm (python-xmlschema): Update to 1.1.0.
    [source]: Change to GIT-FETCH.
    [arguments]: Adjust test invokation.
---
 gnu/packages/xml.scm | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index b931707..5e40ba1 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -2108,13 +2108,17 @@ libxml2 and libxslt.")
 (define-public python-xmlschema
   (package
     (name "python-xmlschema")
-    (version "1.0.18")
+    (version "1.1.0")
     (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "xmlschema" version))
+              ;; Unit tests are not distributed with the PyPI archive.
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/sissaschool/xmlschema";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
               (sha256
                (base32
-                "1inwqwr7d3qah9xf9rfzkpva433jpr4n7n43zybf2gdpz4q1g0ry"))))
+                "1h8321jb6q3dhlh3608y3f3sbbzfd3jg1psyirxkrm4w5xs3lbvy"))))
     (build-system python-build-system)
     (arguments
      '(#:phases
@@ -2126,7 +2130,7 @@ libxml2 and libxslt.")
                    (setenv "PYTHONPATH"
                            (string-append "./build/lib:"
                                           (getenv "PYTHONPATH")))
-                   (invoke "python" "xmlschema/tests/test_all.py"))
+                   (invoke "python" "-m" "unittest" "-v"))
                  (format #t "test suite not run~%"))
              #t)))))
     (native-inputs



reply via email to

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