From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: [PATCH 2/18] gnu: Add python-alembic. Date: Fri, 19 Feb 2016 18:29:43 -0800 Message-ID: <87mvqwnmf5.fsf@dustycloud.org> References: <87oabhsgge.fsf@dustycloud.org> <20160216013556.GD3984@jasmine> <87y4agntdj.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxJW-0005ng-Qt for guix-devel@gnu.org; Fri, 19 Feb 2016 21:30:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWxJS-0006Xv-K0 for guix-devel@gnu.org; Fri, 19 Feb 2016 21:30:30 -0500 Received: from dustycloud.org ([50.116.34.160]:45600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWxJS-0006Xp-Ex for guix-devel@gnu.org; Fri, 19 Feb 2016 21:30:26 -0500 In-reply-to: <87y4agntdj.fsf@dustycloud.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Leo Famulari Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain New version. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-python-alembic.patch >From d41d78ab8a1d58d1e08a7802f43f5bfe7dad1d34 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 13 Feb 2016 17:04:24 -0800 Subject: [PATCH 01/18] gnu: Add python-alembic. * gnu/packages/python.scm (python-alembic, python2-alembic): New variables. --- gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 24af2d8..561f64a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3573,6 +3573,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") -- 2.6.3 --=-=-=--