summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2016-09-11 21:29:55 +0300
committerEfraim Flashner <efraim@flashner.co.il>2016-09-18 23:19:45 +0300
commitde2966cfe8bab5f3284888002d84c490c2308137 (patch)
tree909d18c04d1347aa3fee2d70fd0f6a6c34d14c7f /gnu/packages/python.scm
parent7ee51575792e1030f4baedb20899217b2534708b (diff)
gnu: Add python-sqlalchemy-utils.
* gnu/packages/python.scm (python-sqlalchemy-utils): New variable.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3cb4a8fbfb..07b77d7b0e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3695,6 +3695,37 @@ simple and Pythonic domain language.")
(define-public python2-sqlalchemy
(package-with-python2 python-sqlalchemy))
+(define-public python-sqlalchemy-utils
+ (package
+ (name "python-sqlalchemy-utils")
+ (version "0.32.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "SQLAlchemy-Utils" version))
+ (sha256
+ (base32
+ "1zbmmh7n8m01ikizn2mj1mfwch26nsr1awv9mvskqry7av0mpy98"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-six" ,python-six)
+ ("python-sqlalchemy" ,python-sqlalchemy)))
+ (home-page "https://github.com/kvesteri/sqlalchemy-utils")
+ (synopsis "Various utility functions for SQLAlchemy")
+ (description
+ "SQLAlchemy-utils provides various utility functions and custom data types
+for SQLAlchemy. SQLAlchemy is an SQL database abstraction library for Python.")
+ (properties `((python2-variant . ,(delay python2-sqlalchemy-utils))))
+ (license license:bsd-3)))
+
+(define-public python2-sqlalchemy-utils
+ (let ((base (package-with-python2
+ (strip-python2-variant python-sqlalchemy-utils))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs base))))))
+
(define-public python-alembic
(package
(name "python-alembic")