guix-patches
[Top][All Lists]
Advanced

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

bug#25733: [PATCH 05/18] gnu: Add python2-mysql-python.


From: contact . ng0
Subject: bug#25733: [PATCH 05/18] gnu: Add python2-mysql-python.
Date: Tue, 14 Feb 2017 20:15:50 +0000

From: ng0 <address@hidden>

* gnu/packages/python.scm (python2-mysql-python): New variable.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index aaa6ba111..ba2ff596c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3801,6 +3801,34 @@ toolkits.")
          ,@(fold alist-delete (package-propagated-inputs matplotlib)
                  '("python-pycairo" "python-pygobject" "python-tkinter")))))))
 
+(define-public python2-mysql-python
+  (package
+    (name "python2-mysql-python")
+    (version "1.2.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "MySQL-python" version ".zip"))
+       (sha256
+        (base32
+         "0x0c2jg0bb3pp84njaqiic050qkyd7ymwhfvhipnimg58yv40441"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f ;Tests require a running mysqld at /run/mysqld/mysqld.sock
+       #:python ,python-2)) ;Application is python2 only
+    (inputs
+     `(("unzip" ,unzip)
+       ("mysql" ,mysql)
+       ("zlib" ,zlib)
+       ("openssl" ,openssl)
+       ("python2-sphinx" ,python2-sphinx)
+       ("python2-nose" ,python2-nose)))
+    (home-page "https://github.com/farcepest/MySQLdb1";)
+    (synopsis "Python interface to MySQL")
+    (description "MySQLdb is an interface to the popular MySQL
+database server for Python.")
+    (license license:gpl3)))
+
 (define-public python2-pysnptools
   (package
     (name "python2-pysnptools")
-- 
2.11.1






reply via email to

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