* [PATCH 0/3] Update 2: Some new python packages
@ 2016-05-29 17:00 Hartmut Goebel
2016-05-29 17:00 ` [PATCH 1/3] gnu: Add python-tblib and python2-tblib Hartmut Goebel
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Hartmut Goebel @ 2016-05-29 17:00 UTC (permalink / raw)
To: guix-devel
This is another update for my pathced from 2016-04-17 resp. 2016-04-21.
Changes to the second version of the patches
tblib: fixed test suite (Thanks to Leo Famulari for spotting this)
sqlparser: Use "when" instead of one-armed "if"
sqlparser: still use "which python3" since using get-python-version
is complicated and ugly
ipaddr: unchanged
selenium: dropped
maxminddb: dropped
geoip2: dropped
I dropped these modules since packaging them is too much effort for me now and
I don't need them. The patches are still available at
https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00877.html
Hartmut Goebel (3):
gnu: Add python-tblib and python2-tblib
gnu: add python-sqlparse and python2-sqlparse
gnu: Add python2-ipaddr, a Python-2-only package
gnu/packages/python.scm | 106 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 106 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] gnu: Add python-tblib and python2-tblib
2016-05-29 17:00 [PATCH 0/3] Update 2: Some new python packages Hartmut Goebel
@ 2016-05-29 17:00 ` Hartmut Goebel
2016-06-01 20:31 ` Ludovic Courtès
2016-05-29 17:00 ` [PATCH 2/3] gnu: add python-sqlparse and python2-sqlparse Hartmut Goebel
2016-05-29 17:00 ` [PATCH 3/3] gnu: Add python2-ipaddr, a Python-2-only package Hartmut Goebel
2 siblings, 1 reply; 7+ messages in thread
From: Hartmut Goebel @ 2016-05-29 17:00 UTC (permalink / raw)
To: guix-devel
* packages/python.scm (python-tblib) (python2-tblib): New
variables.
---
gnu/packages/python.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index dc54bff..96163cf 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -19,6 +19,7 @@
;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
+;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -8788,3 +8789,45 @@ the renaming, moving and extracting of attributes, functions, modules, fields
and parameters in Python 2 source code. These refactorings can also be applied
to occurences in strings and comments.")
(license gpl2)))
+
+(define-public python-tblib
+ (package
+ (name "python-tblib")
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "tblib" version))
+ (sha256 (base32
+ "02iahfkfa927hb4jq2bak36ldihwapzacfiq5lyxg8llwn98a1yi"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ ; Upstream runs tests after installation and the package itself
+ ; resides in a subdirectory. Extend PYTHONPATH so it will be found.
+ (setenv "PYTHONPATH"
+ (string-append (getcwd) "/build/lib:" (getenv "PYTHONPATH")))
+ (zero? (system* "py.test" "-vv" "tests" "README.rst")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-setuptools" ,python-setuptools)
+ ("python-six" ,python-six)))
+ (home-page "https://github.com/ionelmc/python-tblib")
+ (synopsis "Traceback serialization library")
+ (description
+ "Traceback serialization allows you to:
+
+@itemize
+@item Pickle tracebacks and raise exceptions with pickled tracebacks in
+different processes. This allows better error handling when running code over
+multiple processes (imagine multiprocessing, billiard, futures, celery etc).
+
+@item Parse traceback strings and raise with the parsed tracebacks.
+@end itemize")
+ (license bsd-3)))
+
+(define-public python2-tblib
+ (package-with-python2 python-tblib))
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] gnu: add python-sqlparse and python2-sqlparse
2016-05-29 17:00 [PATCH 0/3] Update 2: Some new python packages Hartmut Goebel
2016-05-29 17:00 ` [PATCH 1/3] gnu: Add python-tblib and python2-tblib Hartmut Goebel
@ 2016-05-29 17:00 ` Hartmut Goebel
2016-06-01 20:39 ` Ludovic Courtès
2016-05-29 17:00 ` [PATCH 3/3] gnu: Add python2-ipaddr, a Python-2-only package Hartmut Goebel
2 siblings, 1 reply; 7+ messages in thread
From: Hartmut Goebel @ 2016-05-29 17:00 UTC (permalink / raw)
To: guix-devel
* gnu/packages/python.scm (python-sqlparse) (python2-sqlparse):
New variables.
---
gnu/packages/python.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 96163cf..cda4dd3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8831,3 +8831,37 @@ multiple processes (imagine multiprocessing, billiard, futures, celery etc).
(define-public python2-tblib
(package-with-python2 python-tblib))
+
+(define-public python-sqlparse
+ (package
+ (name "python-sqlparse")
+ (version "0.1.19")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "sqlparse" version))
+ (sha256 (base32
+ "1s2fvaxgh9kqzrd6iwy5h7i61ckn05plx9np13zby93z3hdbx5nq"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* _
+ ;; setup.py-integrated 2to3 only affects the build files, but
+ ;; py.test is using the source files. So we need to convert them
+ ;; manually.
+ (when (zero? (system* "python3"))
+ (system* "2to3" "--no-diff" "-wn" "sqlparse" "tests"))
+ (zero? (system* "py.test")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-setuptools" ,python-setuptools)))
+ (home-page "https://github.com/andialbrecht/sqlparse")
+ (synopsis "Non-validating SQL parser")
+ (description "sqlparse is a non-validating SQL parser for Python. It
+provides support for parsing, splitting and formatting SQL statements.")
+ (license bsd-3)))
+
+(define-public python2-sqlparse
+ (package-with-python2 python-sqlparse))
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] gnu: Add python2-ipaddr, a Python-2-only package
2016-05-29 17:00 [PATCH 0/3] Update 2: Some new python packages Hartmut Goebel
2016-05-29 17:00 ` [PATCH 1/3] gnu: Add python-tblib and python2-tblib Hartmut Goebel
2016-05-29 17:00 ` [PATCH 2/3] gnu: add python-sqlparse and python2-sqlparse Hartmut Goebel
@ 2016-05-29 17:00 ` Hartmut Goebel
2016-06-01 20:47 ` Ludovic Courtès
2 siblings, 1 reply; 7+ messages in thread
From: Hartmut Goebel @ 2016-05-29 17:00 UTC (permalink / raw)
To: guix-devel
* gnu/packages/python.scm: (python2-ipaddr): New variable..
---
gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index cda4dd3..8c833ff 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5788,6 +5788,35 @@ IPv6 addresses and networks. This is a port of the Python 3.3 ipaddress
module to older versions of Python.")
(license psfl)))
+(define-public python2-ipaddr
+ (package
+ (name "python2-ipaddr")
+ (version "2.1.11")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "ipaddr" version))
+ (sha256
+ (base32 "1dwq3ngsapjc93fw61rp17fvzggmab5x1drjzvd4y4q0i255nm8v"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:python ,python-2
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* _
+ (zero? (system* "python" "ipaddr_test.py")))))))
+ (home-page "https://github.com/google/ipaddr-py")
+ (synopsis "IP address manipulation library by Google")
+ (description
+ "Ipaddr is a Python library for creating and manupilating IPv4 and IPv6
+addresses and networks.
+
+For new implementations you may prefer to use the standard module
+@code{ipaddress}, which was introduced in Python 3.3 and backported to older
+versions of Python.")
+ (license asl2.0)))
+
(define-public python-idna
(package
(name "python-idna")
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] gnu: Add python-tblib and python2-tblib
2016-05-29 17:00 ` [PATCH 1/3] gnu: Add python-tblib and python2-tblib Hartmut Goebel
@ 2016-06-01 20:31 ` Ludovic Courtès
0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2016-06-01 20:31 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: guix-devel
Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:
> * packages/python.scm (python-tblib) (python2-tblib): New
> variables.
Applied with cosmetic changes, thanks.
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] gnu: add python-sqlparse and python2-sqlparse
2016-05-29 17:00 ` [PATCH 2/3] gnu: add python-sqlparse and python2-sqlparse Hartmut Goebel
@ 2016-06-01 20:39 ` Ludovic Courtès
0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2016-06-01 20:39 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: guix-devel
Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:
> * gnu/packages/python.scm (python-sqlparse) (python2-sqlparse):
> New variables.
Applied with cosmetic changes, notably commit log.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] gnu: Add python2-ipaddr, a Python-2-only package
2016-05-29 17:00 ` [PATCH 3/3] gnu: Add python2-ipaddr, a Python-2-only package Hartmut Goebel
@ 2016-06-01 20:47 ` Ludovic Courtès
0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2016-06-01 20:47 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: guix-devel
Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:
> * gnu/packages/python.scm: (python2-ipaddr): New variable..
Applied.
> + (synopsis "IP address manipulation library by Google")
I removed “by Google” since we don’t generally acknowledge authors
here.
Thanks!
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-06-01 20:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-29 17:00 [PATCH 0/3] Update 2: Some new python packages Hartmut Goebel
2016-05-29 17:00 ` [PATCH 1/3] gnu: Add python-tblib and python2-tblib Hartmut Goebel
2016-06-01 20:31 ` Ludovic Courtès
2016-05-29 17:00 ` [PATCH 2/3] gnu: add python-sqlparse and python2-sqlparse Hartmut Goebel
2016-06-01 20:39 ` Ludovic Courtès
2016-05-29 17:00 ` [PATCH 3/3] gnu: Add python2-ipaddr, a Python-2-only package Hartmut Goebel
2016-06-01 20:47 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).