guix-commits
[Top][All Lists]
Advanced

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

09/11: gnu: python-graphviz: Update to 0.13.2.


From: guix-commits
Subject: 09/11: gnu: python-graphviz: Update to 0.13.2.
Date: Thu, 16 Jan 2020 13:22:13 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 34aa9144786658498ff8d4b6b36ac0ae5bf1d454
Author: Marius Bakke <address@hidden>
AuthorDate: Thu Jan 16 18:42:27 2020 +0100

    gnu: python-graphviz: Update to 0.13.2.
    
    * gnu/packages/graphviz.scm (python-graphviz): Update to 0.13.2.
    [native-inputs]: Add GRAPHVIZ, PYTHON-MOCK, PYTHON-PYTEST, 
PYTHON-PYTEST-COV,
    and PYTHON-PYTEST-MOCK.
    [arguments]: Replace 'check' phase.
---
 gnu/packages/graphviz.scm | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
index eb4b211..365fe1a 100644
--- a/gnu/packages/graphviz.scm
+++ b/gnu/packages/graphviz.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2017 Gábor Boskovits <address@hidden>
 ;;; Copyright © 2018 Mathieu Lirzin <address@hidden>
+;;; Copyright © 2020 Marius Bakke <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -166,16 +167,31 @@ interfaces for other technical domains.")
 (define-public python-graphviz
   (package
     (name "python-graphviz")
-    (version "0.8.4")
+    (version "0.13.2")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "graphviz" version ".zip"))
               (sha256
                (base32
-                "17v8h7j2yz8hy1jf7q8p0ik8dmf32m58lc6v11x7aqc4pnfa2n29"))))
+                "009alrilzx0v7kl41khbq7k6k8b8pxyvbsi1b1ai933f6kpbxb30"))))
     (build-system python-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests #:allow-other-keys)
+                      (if tests
+                          (invoke "pytest" "-vv")
+                          (format #t "test suite not run~%"))
+                      #t)))))
     (native-inputs
-     `(("unzip" ,unzip)))
+     `(("unzip" ,unzip)
+
+       ;; For tests.
+       ("graphviz" ,graphviz)
+       ("python-mock" ,python-mock)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-pytest-mock" ,python-pytest-mock)))
     (home-page "https://github.com/xflr6/graphviz";)
     (synopsis "Simple Python interface for Graphviz")
     (description



reply via email to

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