guix-patches
[Top][All Lists]
Advanced

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

[bug#29144] [PATCH] gnu: add pydot.


From: Gábor Boskovits
Subject: [bug#29144] [PATCH] gnu: add pydot.
Date: Mon, 6 Nov 2017 09:30:04 +0100

* gnu/packages/graphviz.scm(python-pydot): New variable.
---
 gnu/packages/graphviz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/graphviz.scm b/gnu/packages/graphviz.scm
index c71fb74cf..dbc501733 100644
--- a/gnu/packages/graphviz.scm
+++ b/gnu/packages/graphviz.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2016 Theodoros Foradis <address@hidden>
 ;;; Copyright © 2017 Ricardo Wurmus <address@hidden>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2017 Gábor Boskovits <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -41,6 +42,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages gd)
   #:use-module (gnu packages swig)
+  #:use-module (gnu packages python)
   #:use-module ((guix licenses) #:prefix license:))
 
 (define-public graphviz
@@ -211,3 +213,27 @@ visualization tool suite.")
 an intermediate format,and @code{gtk} and @code{cairo} for rendering.  Xdot can
 be used either as a standalone application, or as a python library.")
     (license license:lgpl3+)))
+
+(define-public python-pydot
+  (package
+    (name "python-pydot")
+    (version "1.2.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pydot" version))
+       (sha256
+        (base32
+         "00imlz0033dygb9gdag1xr0cybn33gk5jsdi9ffbszzr97rd7dgd"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-pyparsing",python-pyparsing)))
+    (native-inputs
+     `(("python-chardet",python-chardet)))
+    (home-page "https://github.com/erocarrera/pydot";)
+    (synopsis "Python interface to Graphviz's Dot language")
+    (description
+     "An interface to Graphviz that can parse and dump
++into the DOT language used by GraphViz, is written in pure Python,
++and networkx can convert its graphs to pydot.")
+    (license license:expat)))
-- 
2.14.2






reply via email to

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