Re: Branching based on Python version (was [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse)

2016-05-29 Thread Hartmut Goebel
Am 24.04.2016 um 23:40 schrieb Ludovic Courtès: > (guix build python-build-system) includes ‘get-python-version’, which > could be used for this purpose. I looked into this: using it is very cumbersome, since it requires `python` to be passed: (get-python-version (assoc-ref inputs "python")))

Re: Branching based on Python version (was [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse)

2016-04-25 Thread Leo Famulari
On Sun, Apr 24, 2016 at 11:40:29PM +0200, Ludovic Courtès wrote: > Leo Famulari skribis: > > > On Thu, Apr 21, 2016 at 09:19:49PM +0200, Hartmut Goebel wrote: > >> * gnu/packages/python.scm (python-sqlparse) (python2-sqlparse): > >> New variables. > > > >> +(arguments > >> + `(#:phases

Re: Branching based on Python version (was [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse)

2016-04-24 Thread Ludovic Courtès
Leo Famulari skribis: > On Thu, Apr 21, 2016 at 09:19:49PM +0200, Hartmut Goebel wrote: >> * gnu/packages/python.scm (python-sqlparse) (python2-sqlparse): >> New variables. > >> +(arguments >> + `(#:phases >> + (modify-phases %standard-phases >> + (replace 'check >> +

Branching based on Python version (was [PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse)

2016-04-24 Thread Leo Famulari
On Thu, Apr 21, 2016 at 09:19:49PM +0200, Hartmut Goebel wrote: > * gnu/packages/python.scm (python-sqlparse) (python2-sqlparse): > New variables. > +(arguments > + `(#:phases > + (modify-phases %standard-phases > + (replace 'check > + (lambda* _ > + ;

[PATCH 2/6] gnu: add python-sqlparse and python2-sqlparse

2016-04-21 Thread Hartmut Goebel
* gnu/packages/python.scm (python-sqlparse) (python2-sqlparse): 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 7cb1dc6..0241ed5 100644 --- a/gnu/packages/