all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 2/18] gnu: Add python-alembic.
@ 2016-02-15 23:26 Christopher Allan Webber
  2016-02-16  1:35 ` Leo Famulari
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-15 23:26 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0002-gnu-Add-python-alembic.patch --]
[-- Type: text/x-patch, Size: 2011 bytes --]

From 058ebb088ce2998f120f461699c3550f1fc8034b Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Sat, 13 Feb 2016 17:04:24 -0800
Subject: [PATCH 02/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 5b7e4ac..7b794d1 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)))
+    (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)
+      (inputs `(("python2-setuptools" ,python2-setuptools)
+                ,@(package-inputs alembic))))))
+
 (define-public python-distutils-extra
   (package
     (name "python-distutils-extra")
-- 
2.6.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/18] gnu: Add python-alembic.
  2016-02-15 23:26 [PATCH 2/18] gnu: Add python-alembic Christopher Allan Webber
@ 2016-02-16  1:35 ` Leo Famulari
  2016-02-19 23:59   ` Christopher Allan Webber
  0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-02-16  1:35 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

On Mon, Feb 15, 2016 at 03:26:41PM -0800, Christopher Allan Webber wrote:
> From 058ebb088ce2998f120f461699c3550f1fc8034b Mon Sep 17 00:00:00 2001
> From: Christopher Allan Webber <cwebber@dustycloud.org>
> Date: Sat, 13 Feb 2016 17:04:24 -0800
> Subject: [PATCH 02/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 5b7e4ac..7b794d1 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
        ^
I would move this 1 character to the right, and shift the rest of origin
accordingly.

> +       (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)))
> +    (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)
> +      (inputs `(("python2-setuptools" ,python2-setuptools)
> +                ,@(package-inputs alembic))))))
> +
>  (define-public python-distutils-extra
>    (package
>      (name "python-distutils-extra")
> -- 
> 2.6.3
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/18] gnu: Add python-alembic.
  2016-02-16  1:35 ` Leo Famulari
@ 2016-02-19 23:59   ` Christopher Allan Webber
  2016-02-20  2:29     ` Christopher Allan Webber
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-19 23:59 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari writes:

> On Mon, Feb 15, 2016 at 03:26:41PM -0800, Christopher Allan Webber wrote:
>> From 058ebb088ce2998f120f461699c3550f1fc8034b Mon Sep 17 00:00:00 2001
>> From: Christopher Allan Webber <cwebber@dustycloud.org>
>> Date: Sat, 13 Feb 2016 17:04:24 -0800
>> Subject: [PATCH 02/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 5b7e4ac..7b794d1 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
>         ^
> I would move this 1 character to the right, and shift the rest of origin
> accordingly.

Hm, we usually follow emacs indentation patterns, and this is how emacs
indents it...

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/18] gnu: Add python-alembic.
  2016-02-19 23:59   ` Christopher Allan Webber
@ 2016-02-20  2:29     ` Christopher Allan Webber
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Allan Webber @ 2016-02-20  2:29 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 14 bytes --]

New version.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-alembic.patch --]
[-- Type: text/x-diff, Size: 2044 bytes --]

From d41d78ab8a1d58d1e08a7802f43f5bfe7dad1d34 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-20  2:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15 23:26 [PATCH 2/18] gnu: Add python-alembic Christopher Allan Webber
2016-02-16  1:35 ` Leo Famulari
2016-02-19 23:59   ` Christopher Allan Webber
2016-02-20  2:29     ` Christopher Allan Webber

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.