diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-02-13 17:04:24 -0800 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-02-21 18:59:29 -0800 |
commit | af5a4602222089ac7e7fdb2c75f2dd00dd305630 (patch) | |
tree | 7242295c6bd2a885f8e71719915ec60541fce283 | |
parent | 95001d4b4677b64f26a4bf202a77267830bb7039 (diff) | |
download | guix-af5a4602222089ac7e7fdb2c75f2dd00dd305630.tar.gz |
gnu: Add python-alembic.
* gnu/packages/python.scm (python-alembic, python2-alembic): New variables.
-rw-r--r-- | gnu/packages/python.scm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index abbb50b649..ac4e4fc8b7 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3571,6 +3571,42 @@ simple and Pythonic domain language.") (define-public python2-sqlalchemy (package-with-python2 python-sqlalchemy)) +(define-public python-alembic + (package + (name "python-alembic") + (version "0.8.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "alembic" version)) + (sha256 + (base32 + "0jk23a852l3ybv7gfz81xzslyrnqnpjds5x15zd234y9rh9gq1w5")))) + (build-system python-build-system) + (native-inputs + `(("python-mock" ,python-mock) + ("python-pytest-cov" ,python-pytest-cov))) + (propagated-inputs + `(("python-sqlalchemy" ,python-sqlalchemy) + ("python-mako" ,python-mako) + ("python-editor" ,python-editor))) + (home-page "http://bitbucket.org/zzzeek/alembic") + (synopsis + "Database migration tool for SQLAlchemy") + (description + "Alembic is a lightweight database migration tool for usage with the +SQLAlchemy Database Toolkit for Python.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-alembic)))))) + +(define-public python2-alembic + (let ((alembic (package-with-python2 + (strip-python2-variant python-alembic)))) + (package + (inherit alembic) + (native-inputs `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs alembic)))))) + (define-public python-distutils-extra (package (name "python-distutils-extra") |