summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2017-11-19 08:47:44 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2017-11-20 20:47:59 +0100
commit41916bea1b3f70895ec1ff5a457a1cfa68896c21 (patch)
treeb1878951965e1532f76290f482a80aee59bf5ee5 /gnu/packages
parentbd7e136d295f0d6c1aa5d107356e28c259a54cb9 (diff)
gnu: Add python-pyodbc.
* gnu/packages/databases.scm (python-pyodbc, python2-pyodbc): New variables.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/databases.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index b825a24528..db3361eb10 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1764,6 +1764,33 @@ for ODBC.")
(define-public python2-pyodbc-c
(package-with-python2 python-pyodbc-c))
+(define-public python-pyodbc
+ (package
+ (name "python-pyodbc")
+ (version "4.0.21")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pyodbc" version))
+ (sha256
+ (base32
+ "0a83zwz3h1agshnsc6r7al6q83222w8601gpzzzjvjz5m56ghmcn"))
+ (file-name (string-append name "-" version ".tar.gz"))))
+ (build-system python-build-system)
+ (inputs
+ `(("unixodbc" ,unixodbc)))
+ (arguments
+ `(;; No unit tests exist.
+ #:tests? #f))
+ (home-page "https://github.com/mkleehammer/pyodbc")
+ (synopsis "Python ODBC Library")
+ (description "@code{python-pyodbc} provides a Python DB-API driver
+for ODBC.")
+ (license (license:x11-style "file:///LICENSE.TXT"))))
+
+(define-public python2-pyodbc
+ (package-with-python2 python-pyodbc))
+
(define-public mdbtools
(package
(name "mdbtools")