From ae831df428e5c782906d19c8c270350cbbf070ac Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Mon, 14 Mar 2016 19:34:21 -0400 Subject: gnu: python-msgpack: Update to 0.4.7. * gnu/packages/python.scm (python-msgpack, python2-msgpack): Update to 0.4.7. [source]: Use pypi-uri. --- gnu/packages/python.scm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 97a69c3a1b..24eca007eb 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5417,15 +5417,13 @@ (define-public python2-llfuse (define-public python-msgpack (package (name "python-msgpack") - (version "0.4.6") + (version "0.4.7") (source (origin (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/source/m/" - "msgpack-python/msgpack-python-" version ".tar.gz")) + (uri (pypi-uri "msgpack-python" version)) (sha256 (base32 - "1527c76b6fn4zzkgfq5xvhh7x9a9686g7fjiz717rw5vklf5ik5z")))) + "0syd7bs83qs9qmxw540jbgsildbqk4yb57fmrlns1021llli402y")))) (build-system python-build-system) (native-inputs `(("python-setuptools" ,python-setuptools))) -- cgit v1.2.3 From bd74be7b8c6f3df34d8556f55ab9ef7411c07933 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Mon, 14 Mar 2016 19:34:22 -0400 Subject: gnu: python-msgpack: Use 'python2-variant'. * gnu/packages/python.scm (python-msgpack)[native-inputs]: Remove field. [properties]: New field. (python2-msgpack): Use 'strip-python2-variant'. [native-inputs]: Add python2-setuptools. --- gnu/packages/python.scm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 24eca007eb..0ac7c06eaf 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5425,14 +5425,19 @@ (define-public python-msgpack (base32 "0syd7bs83qs9qmxw540jbgsildbqk4yb57fmrlns1021llli402y")))) (build-system python-build-system) - (native-inputs - `(("python-setuptools" ,python-setuptools))) (synopsis "MessagePack (de)serializer") (description "MessagePack is a fast, compact binary serialization format, suitable for similar data to JSON. This package provides CPython bindings for reading and writing MessagePack data.") (home-page "https://pypi.python.org/pypi/msgpack-python/") - (license asl2.0))) + (license asl2.0) + (properties `((python2-variant . ,(delay python2-msgpack)))))) + +(define-public python2-msgpack + (package (inherit (package-with-python2 + (strip-python2-variant python-msgpack))) + (native-inputs + `(("python2-setuptools" ,python2-setuptools))))) (define-public python2-msgpack (package-with-python2 python-msgpack)) -- cgit v1.2.3 From cd0569c49877a17785ab7dcd9185c5be72e7304c Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Mon, 14 Mar 2016 19:34:24 -0400 Subject: gnu: python-llfuse: Update to 1.0, keep 0.41 variant. * gnu/packages/python.scm (python-llfuse, python2-llfuse): Update to 1.0. (python-llfuse)[properties]: New field. [license]: Remove 'expat'. (python2-llfuse): Use 'strip-python2-variant'. [propagated-inputs]: Add python2-contextlib2. (python-llfuse-0.41): New variable. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0ac7c06eaf..b2c20de8a0 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5387,7 +5387,7 @@ (define-public python2-appdirs (define-public python-llfuse (package (name "python-llfuse") - (version "0.41") + (version "1.0") (source (origin (method url-fetch) (uri (string-append @@ -5395,7 +5395,7 @@ (define-public python-llfuse "llfuse-" version ".tar.bz2")) (sha256 (base32 - "0yzy8ixpmxk00kdq6lx5vvwbs0n6s59qnja5q0js2ahbqyxiz2hb")))) + "1li7q04ljrvwharw4fblcbfhvk6s0l3lnv8yqb4c22lcgbkiqlps")))) (build-system python-build-system) (inputs `(("fuse" ,fuse) @@ -5407,12 +5407,29 @@ (define-public python-llfuse (description "Python-LLFUSE is a set of Python bindings for the low level FUSE API.") (home-page "https://bitbucket.org/nikratio/python-llfuse/") - ;; Python-LLFUSE includes underscore.js, which is MIT (expat) licensed. - ;; The rest of the package is licensed under LGPL2.0 or later. - (license (list license:expat lgpl2.0+)))) + (license lgpl2.0+) + (properties `((python2-variant . ,(delay python2-llfuse)))))) (define-public python2-llfuse - (package-with-python2 python-llfuse)) + (package (inherit (package-with-python2 + (strip-python2-variant python-llfuse))) + (propagated-inputs `(("python2-contextlib2" ,python2-contextlib2))))) + +;; For attic-0.16 +(define-public python-llfuse-0.41 + (package (inherit python-llfuse) + (version "0.41") + (source (origin + (method url-fetch) + (uri (string-append + "https://bitbucket.org/nikratio/python-llfuse/downloads/" + "llfuse-" version ".tar.bz2")) + (sha256 + (base32 + "0yzy8ixpmxk00kdq6lx5vvwbs0n6s59qnja5q0js2ahbqyxiz2hb")))) + ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat) + ;; licensed. The rest of the package is licensed under LGPL2.0 or later. + (license (list license:expat lgpl2.0+)))) (define-public python-msgpack (package -- cgit v1.2.3 From 229b36617ac54e85869287f136c2436210f920ec Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Mon, 14 Mar 2016 19:34:26 -0400 Subject: gnu: python-llfuse-0.41: Update to 0.41.1. * gnu/packages/python.scm (python-llfuse-0.41): Update to 0.41.1. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b2c20de8a0..57b75c24f6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5418,7 +5418,7 @@ (define-public python2-llfuse ;; For attic-0.16 (define-public python-llfuse-0.41 (package (inherit python-llfuse) - (version "0.41") + (version "0.41.1") (source (origin (method url-fetch) (uri (string-append @@ -5426,7 +5426,7 @@ (define-public python-llfuse-0.41 "llfuse-" version ".tar.bz2")) (sha256 (base32 - "0yzy8ixpmxk00kdq6lx5vvwbs0n6s59qnja5q0js2ahbqyxiz2hb")))) + "1imlqw9b73086y97izr036f58pgc5akv4ihc2rrf8j5h75jbrlaa")))) ;; Python-LLFUSE < 0.42 includes underscore.js, which is MIT (expat) ;; licensed. The rest of the package is licensed under LGPL2.0 or later. (license (list license:expat lgpl2.0+)))) -- cgit v1.2.3 From 54c30ebcb130de9158b37ceca34fd5033acc8966 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Fri, 25 Mar 2016 17:05:02 -0400 Subject: gnu: python-atomicwrites: Update to 1.0.0. * gnu/packages/python.scm (python-atomicwrites, python2-atomicwrites): Update to 1.0.0. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 57b75c24f6..88aef9d8d6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6767,13 +6767,13 @@ (define-public python2-websocket-client (define-public python-atomicwrites (package (name "python-atomicwrites") - (version "0.1.9") + (version "1.0.0") (source (origin (method url-fetch) (uri (pypi-uri "atomicwrites" version)) (sha256 (base32 - "08s05h211r07vs66r4din3swrbzb344vli041fihpg34q3lcxpvw")))) + "019fa4771q7fb1167yfbh6msdzcqini6v7i59rmf72mzdjd7x5qv")))) (build-system python-build-system) (synopsis "Atomic file writes in Python") (description "Library for atomic file writes using platform dependent tools -- cgit v1.2.3 From daeeea715473b5c698647f8fcc5729ac62ac8191 Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sun, 27 Mar 2016 19:10:48 -0700 Subject: gnu: Add python-magic. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python.scm (python-magic, python2-magic): New variables. Signed-off-by: Ludovic Courtès --- gnu/packages/python.scm | 68 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 88aef9d8d6..b1d640456d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -16,7 +16,7 @@ ;;; Copyright © 2015, 2016 Erik Edrosa ;;; Copyright © 2015, 2016 Efraim Flashner ;;; Copyright © 2015 Kyle Meyer -;;; Copyright © 2015 Chris Marusich +;;; Copyright © 2015, 2016 Chris Marusich ;;; Copyright © 2016 Danny Milosavljevic ;;; ;;; This file is part of GNU Guix. @@ -6056,7 +6056,10 @@ (define-public python-file #t)))))) (inputs `(("file" ,file))) (self-native-input? #f) - (synopsis "Python bindings to the libmagic file type guesser"))) + (synopsis "Python bindings to the libmagic file type guesser. Note that +this module and the python-magic module both provide a \"magic.py\" file; +these two modules, which are different and were developed separately, both +serve the same purpose: provide Python bindings for libmagic."))) (define-public python2-file (package-with-python2 python-file)) @@ -8490,3 +8493,64 @@ (define-public python-rarfile (define-public python2-rarfile (package-with-python2 python-rarfile)) + +(define-public python-magic + (package + (name "python-magic") + (version "0.4.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/ahupp/python-magic/archive/" + version ".tar.gz")) + (sha256 + (base32 + "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk")) + (file-name (string-append name "-" version "-checkout")))) + (build-system python-build-system) + (arguments + ;; The tests are unreliable, so don't run them. The tests fail + ;; under Python3 because they were written for Python2 and + ;; contain import statements that do not work in Python3. One of + ;; the tests fails under Python2 because its assertions are + ;; overly stringent; it relies on comparing output strings which + ;; are brittle and can change depending on the version of + ;; libmagic being used and the system on which the test is + ;; running. In my case, under GuixSD 0.10.0, only one test + ;; failed, and it seems to have failed only because the version + ;; of libmagic that is packaged in Guix outputs a slightly + ;; different (but not wrong) string than the one that the test + ;; expected. + '(#:tests? #f + #:phases (modify-phases %standard-phases + ;; Replace a specific method call with a hard-coded + ;; path to the necessary libmagic.so file in the + ;; store. If we don't do this, then the method call + ;; will fail to find the libmagic.so file, which in + ;; turn will cause any application using + ;; python-magic to fail. + (add-before 'build 'hard-code-path-to-libmagic + (lambda* (#:key inputs #:allow-other-keys) + (let ((file (assoc-ref inputs "file"))) + (substitute* "magic.py" + (("ctypes.util.find_library\\('magic'\\)") + (string-append "'" file "/lib/libmagic.so'"))) + #t)))))) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (inputs + ;; python-magic needs to be able to find libmagic.so. + `(("file" ,file))) + (home-page "https://github.com/ahupp/python-magic") + (synopsis "File type identification using libmagic") + (description + "This module uses ctypes to access the libmagic file type +identification library. It makes use of the local magic database and +supports both textual and MIME-type output. Note that this module and +the python-file module both provide a \"magic.py\" file; these two +modules, which are different and were developed separately, both serve +the same purpose: to provide Python bindings for libmagic.") + (license license:expat))) + +(define-public python2-magic + (package-with-python2 python-magic)) -- cgit v1.2.3 From 12af303f4736b19679142047327e55898e18eb9d Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sun, 27 Mar 2016 19:28:37 -0700 Subject: gnu: Add python2-s3cmd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python.scm (python2-s3cmd): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b1d640456d..e32022606e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8554,3 +8554,42 @@ (define-public python-magic (define-public python2-magic (package-with-python2 python-magic)) + +(define-public python2-s3cmd + (package + (name "python2-s3cmd") + (version "1.6.1") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/s3tools/" + "s3cmd-" version ".tar.gz")) + (sha256 + (base32 + "0ki1rzhm5icvi9ry5jswi4b22yqwyj0d2wsqsgilwx6qhi7pjxa6")))) + (build-system python-build-system) + (arguments + ;; s3cmd is written for python2 only and contains no tests. + `(#:python ,python-2 + #:tests? #f)) + (native-inputs + `(("python2-setuptools" ,python2-setuptools))) + (inputs + `(("python2-dateutil" ,python2-dateutil) + ;; The python-file package also provides a magic.py module. + ;; This is an unfortunate state of affairs; however, s3cmd + ;; fails to install if it cannot find specifically the + ;; python-magic package. Thus we include it, instead of using + ;; python-file. Ironically, s3cmd sometimes works better + ;; without libmagic bindings at all: + ;; https://github.com/s3tools/s3cmd/issues/198 + ("python2-magic" ,python2-magic))) + (home-page "http://s3tools.org/s3cmd") + (synopsis "Command line tool for S3-compatible storage services") + (description + "S3cmd is a command line tool for uploading, retrieving and managing data +in storage services that are compatible with the Amazon Simple Storage +Service (S3) protocol, including S3 itself. It supports rsync-like backup, +GnuPG encryption, and more. It also supports management of Amazon's +CloudFront content delivery network.") + (license gpl2+))) -- cgit v1.2.3 From 78c0d323e9fae4a5b5a2b3c54eeab5a5677b7804 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Sun, 3 Apr 2016 06:53:03 +1000 Subject: gnu: python-pandas: Update to 0.18.0. * gnu/packages/python.scm (python-pandas, python2-pandas): Update to 0.18.0. [arguments]: Enable tests. --- gnu/packages/python.scm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e32022606e..f91980819c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -978,20 +978,14 @@ (define-public python2-parsedatetime (define-public python-pandas (package (name "python-pandas") - (version "0.16.2") + (version "0.18.0") (source (origin (method url-fetch) (uri (pypi-uri "pandas" version)) (sha256 - (base32 "10agmrkps8bi5948vwpipfxds5kj1d076m9i0nhaxwqiw7gm6670")))) + (base32 "050qw0ap5bhyv5flp78x3lcq1dlminl3xaj6kbrm0jqmx0672xf9")))) (build-system python-build-system) - (arguments - `(;; Three tests fail: - ;; - test_read_google - ;; - test_read_yahoo - ;; - test_month_range_union_tz_dateutil - #:tests? #f)) (propagated-inputs `(("python-numpy" ,python-numpy) ("python-pytz" ,python-pytz) -- cgit v1.2.3 From 1ef09c0c75c61fd70a84667a845a652995b38a94 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Sun, 3 Apr 2016 15:15:40 +1000 Subject: gnu: Add python-pbr. * gnu/packages/python.scm (python-pbr, python2-pbr): New variables. --- gnu/packages/python.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f91980819c..d79cb135e6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1867,6 +1867,27 @@ (define-public python-pbr-0.11 (define-public python2-pbr-0.11 (package-with-python2 python-pbr-0.11)) +(define-public python-pbr + (package (inherit python-pbr-0.11) + (version "1.8.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pbr" version)) + (sha256 + (base32 + "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools) + ("python-fixtures" ,python-fixtures) + ("python-pip" ,python-pip))) + (properties `((python2-variant . ,(delay python2-pbr)))))) + +(define-public python2-pbr + (package (inherit (package-with-python2 + (strip-python2-variant python-pbr))))) + (define-public python-fixtures (package (name "python-fixtures") -- cgit v1.2.3 From 1804527ab0ba107ee891f2c82e5346cb7044f8a3 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Sun, 3 Apr 2016 15:55:44 +1000 Subject: gnu: python-lockfile Use 'python2-variant'. * gnu/packages/python.scm (python-lockfile): Use 'python2-variant'. [properties]: New field. (python2-lockfile): Use 'strip-python2-variant'. --- gnu/packages/python.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d79cb135e6..2f2ef2ffd9 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -728,10 +728,13 @@ (define-public python-lockfile (description "The lockfile package exports a LockFile class which provides a simple API for locking files.") - (license license:expat))) + (license license:expat) + (properties `((python2-variant . ,(delay python2-lockfile)))))) (define-public python2-lockfile - (package-with-python2 python-lockfile)) + (let ((base (package-with-python2 (strip-python2-variant python-lockfile)))) + (package + (inherit base)))) (define-public python-mock (package -- cgit v1.2.3 From 692add53bcde80359c20ce17ae7b86aea18f5a21 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Sun, 3 Apr 2016 16:02:49 +1000 Subject: gnu: python-lockfile: Update to 0.12.2. * gnu/packages/python.scm (python-lockfile): Update to 0.12.2. [native-inputs]: Add python-pbr. (python2-lockfile): Update to 0.12.2. [native-inputs]: Add python2-setuptools, python2-pbr. --- gnu/packages/python.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2f2ef2ffd9..66ed16a543 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -712,7 +712,7 @@ (define-public python2-h5py (define-public python-lockfile (package (name "python-lockfile") - (version "0.9.1") + (version "0.12.2") (source (origin (method url-fetch) @@ -720,9 +720,11 @@ (define-public python-lockfile "lockfile-" version ".tar.gz")) (sha256 (base32 - "0iwif7i84gwpvrnpv4brshdk8j6l77smvknm8k3bg77mj6f5ini3")))) + "16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba")))) (build-system python-build-system) (arguments '(#:test-target "check")) + (native-inputs + `(("python-pbr" ,python-pbr))) (home-page "http://code.google.com/p/pylockfile/") (synopsis "Platform-independent file locking module") (description @@ -734,7 +736,9 @@ (define-public python-lockfile (define-public python2-lockfile (let ((base (package-with-python2 (strip-python2-variant python-lockfile)))) (package - (inherit base)))) + (inherit base) + (native-inputs `(("python2-setuptools" ,python2-setuptools) + ,@(package-native-inputs base)))))) (define-public python-mock (package -- cgit v1.2.3 From e25f017422899c3e43cf42e254f46053bf4c4243 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Sun, 3 Apr 2016 21:09:17 +1000 Subject: gnu: Remove duplicate python-pbr. This is a follow-up to commit 1ef09c0c75c61fd70a84667a845a652995b38a94. * gnu/packages/openstack.scm (python-pbr, python2-pbr): Move from here ... * gnu/packages/python.scm: ... to here. (python-pbr, python2-pbr): Delete duplicate packages. --- gnu/packages/openstack.scm | 43 ----------------------------------------- gnu/packages/python.scm | 48 +++++++++++++++++++++++++++++++++------------- 2 files changed, 35 insertions(+), 56 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 0fa488f842..947abf31a4 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -20,7 +20,6 @@ (define-module (gnu packages openstack) #:use-module (gnu packages python) #:use-module (gnu packages tls) - #:use-module (gnu packages version-control) #:use-module (guix build-system python) #:use-module (guix download) #:use-module ((guix licenses) @@ -235,48 +234,6 @@ (define-public python-os-testr (define-public python2-os-testr (package-with-python2 python-os-testr)) -(define-public python-pbr - (package - (name "python-pbr") - (version "1.8.1") - (source - (origin - (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/source/p/pbr/pbr-" - version - ".tar.gz")) - (sha256 - (base32 - "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2")))) - (build-system python-build-system) - (arguments - `(#:tests? #f)) ;; Most tests seem to use the Internet. - (propagated-inputs - `(("python-testrepository" ,python-testrepository) - ("git" ,git))) ;; pbr actually uses the "git" binary. - (inputs - `(("python-fixtures" ,python-fixtures) - ("python-mimeparse" ,python-mimeparse) - ("python-mock" ,python-mock) - ("python-setuptools" ,python-setuptools) - ("python-six" ,python-six) - ("python-sphinx" ,python-sphinx) - ("python-testrepository" ,python-testrepository) - ("python-testresources" ,python-testresources) - ("python-testscenarios" ,python-testscenarios) - ("python-testtools" ,python-testtools) - ("python-virtualenv" ,python-virtualenv))) - (home-page "https://launchpad.net/pbr") - (synopsis "Change the default behavior of Python’s setuptools") - (description - "Python Build Reasonableness (PBR) is a library that injects some useful -and sensible default behaviors into your setuptools run.") - (license asl2.0))) - -(define-public python2-pbr - (package-with-python2 python-pbr)) - (define-public python-requests-mock (package (name "python-requests-mock") diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 66ed16a543..414503fad1 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -69,6 +69,7 @@ (define-module (gnu packages python) #:use-module (gnu packages texlive) #:use-module (gnu packages texinfo) #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages base) #:use-module (gnu packages xml) @@ -1875,25 +1876,46 @@ (define-public python2-pbr-0.11 (package-with-python2 python-pbr-0.11)) (define-public python-pbr - (package (inherit python-pbr-0.11) + (package + (name "python-pbr") (version "1.8.1") (source - (origin - (method url-fetch) - (uri (pypi-uri "pbr" version)) - (sha256 - (base32 - "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2")))) + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/p/pbr/pbr-" + version + ".tar.gz")) + (sha256 + (base32 + "0jcny36cf3s8ar5r4a575npz080hndnrfs4np1fqhv0ym4k7c4p2")))) (build-system python-build-system) + (arguments + `(#:tests? #f)) ;; Most tests seem to use the Internet. + (propagated-inputs + `(("python-testrepository" ,python-testrepository) + ("git" ,git))) ;; pbr actually uses the "git" binary. (inputs - `(("python-setuptools" ,python-setuptools) - ("python-fixtures" ,python-fixtures) - ("python-pip" ,python-pip))) - (properties `((python2-variant . ,(delay python2-pbr)))))) + `(("python-fixtures" ,python-fixtures) + ("python-mimeparse" ,python-mimeparse) + ("python-mock" ,python-mock) + ("python-setuptools" ,python-setuptools) + ("python-six" ,python-six) + ("python-sphinx" ,python-sphinx) + ("python-testrepository" ,python-testrepository) + ("python-testresources" ,python-testresources) + ("python-testscenarios" ,python-testscenarios) + ("python-testtools" ,python-testtools) + ("python-virtualenv" ,python-virtualenv))) + (home-page "https://launchpad.net/pbr") + (synopsis "Change the default behavior of Python’s setuptools") + (description + "Python Build Reasonableness (PBR) is a library that injects some useful +and sensible default behaviors into your setuptools run.") + (license asl2.0))) (define-public python2-pbr - (package (inherit (package-with-python2 - (strip-python2-variant python-pbr))))) + (package-with-python2 python-pbr)) (define-public python-fixtures (package -- cgit v1.2.3 From 61a4332d9eab8c69add07e4b4d5352345c2836c9 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 22 Mar 2016 18:08:51 -0400 Subject: gnu: python-pytest: Update to 2.7.3. * gnu/packages/python.scm (python-pytest, python2-pytest): Update to 2.7.3. --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 414503fad1..5eb29a28a8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1532,7 +1532,7 @@ (define-public python2-py (define-public python-pytest (package (name "python-pytest") - (version "2.6.1") + (version "2.7.3") (source (origin (method url-fetch) @@ -1541,7 +1541,7 @@ (define-public python-pytest version ".tar.gz")) (sha256 (base32 - "0g2w4p0n42wvz8rq4k6gnzpkakgz3g8sfanxk8jrsra9675snkcr")) + "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm")) (modules '((guix build utils))) (snippet ;; One of the tests involves the /usr directory, so it fails. -- cgit v1.2.3 From 4f363e73f8ab537786e6036c796ad20bebc76a97 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 22 Mar 2016 18:09:55 -0400 Subject: gnu: python-cryptography, python-cryptography-vectors: Update to 1.3.1. These packages should be udpated together. * gnu/packages/python.scm (python-cryptography): Update to 1.3.1. (python-cryptogprahy-vectors): Update to 1.3.1. --- gnu/packages/python.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5eb29a28a8..c6f30ca1d3 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5835,7 +5835,7 @@ (define-public python2-pretend (define-public python-cryptography-vectors (package (name "python-cryptography-vectors") - (version "1.2.3") + (version "1.3.1") (source (origin (method url-fetch) @@ -5844,7 +5844,7 @@ (define-public python-cryptography-vectors version ".tar.gz")) (sha256 (base32 - "0shawgpax79gvjrj0a313sll9gaqys7q1hxngn6j4k24lmz7bwki")))) + "1144l3ypz3bngxd59lb4y74xa401w92lhvvjgxzglmvbh8wzkcbb")))) (build-system python-build-system) (native-inputs `(("python-setuptools" ,python-setuptools))) @@ -5861,14 +5861,14 @@ (define-public python2-cryptography-vectors (define-public python-cryptography (package (name "python-cryptography") - (version "1.2.3") + (version "1.3.1") (source (origin (method url-fetch) (uri (pypi-uri "cryptography" version)) (sha256 (base32 - "0kj511z4g21fhcr649pyzpl0zzkkc7hsgxxjys6z8wwfvmvirccf")))) + "1qjkrpfvxcyd0kal3zpm5y7f9p3y77ixn9jw8f4dqpgrw1sn3cxl")))) (build-system python-build-system) (inputs `(("openssl" ,openssl))) -- cgit v1.2.3 From 2fc629ddc4580e081127f661c4b463e11b6e3dee Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 22 Mar 2016 18:11:08 -0400 Subject: gnu: python-pyopenssl: Update to 16.0.0. * gnu/packages/python.scm (python-pyopenssl, python2-pyopenssl): Update to 16.0.0. [arguments]: Remove field. --- gnu/packages/python.scm | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c6f30ca1d3..150fce9540 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5912,7 +5912,7 @@ (define-public python2-cryptography (define-public python-pyopenssl (package (name "python-pyopenssl") - (version "0.15.1") + (version "16.0.0") (source (origin (method url-fetch) @@ -5920,29 +5920,8 @@ (define-public python-pyopenssl "pyOpenSSL/pyOpenSSL-" version ".tar.gz")) (sha256 (base32 - "0wnnq15rhj7fhdcd8ycwiw6r6g3w9f9lcy6cigg8226vsrq618ph")))) + "0zfijaxlq4vgi6jz0d4i5xq9ygqnyps6br7lmigjhqnh8gp10g9n")))) (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-tests - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "OpenSSL/test/test_ssl.py" - (("client\\.connect\\(\\('verisign\\.com', 443\\)\\)") - "return True") - ;; FIXME: disable broken test - (("test_set_tmp_ecdh") "disabled__set_tmp_ecdh")) - (substitute* "OpenSSL/test/test_crypto.py" - (("command = b\"openssl \"") - (string-append "command = b\"" - (assoc-ref inputs "openssl") - "/bin/openssl" " \"")) - ;; FIXME: disable four broken tests - (("test_der") "disabled__der") - (("test_digest") "disabled__digest") - (("test_get_extension") "disabled__get_extension") - (("test_extension_count") "disabled__extension_count")) - #t))))) (propagated-inputs `(("python-cryptography" ,python-cryptography) ("python-six" ,python-six))) -- cgit v1.2.3 From 877889f3ca45e2a7b6972e19e5f20be74cd3ef30 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 16 Feb 2016 18:38:27 +0200 Subject: gnu: python-futures: Remove variable. * gnu/packages/python.scm (python-futures): Remove it. --- gnu/packages/python.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 150fce9540..c1813e38b4 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7257,9 +7257,9 @@ (define-public python2-functools32 3.2.3 for use with older versions of Python and PyPy.") (license license:expat))) -(define-public python-futures +(define-public python2-futures (package - (name "python-futures") + (name "python2-futures") (version "3.0.3") (source (origin @@ -7269,8 +7269,9 @@ (define-public python-futures (base32 "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig")))) (build-system python-build-system) + (arguments `(#:python ,python-2)) (native-inputs - `(("python-setuptools" ,python-setuptools))) + `(("python2-setuptools" ,python2-setuptools))) (home-page "https://github.com/agronholm/pythonfutures") (synopsis "Backport of the concurrent.futures package from Python 3.2") @@ -7280,9 +7281,6 @@ (define-public python-futures concurrent.futures package from Python 3.2") (license bsd-3))) -(define-public python2-futures - (package-with-python2 python-futures)) - (define-public python-urllib3 (package (name "python-urllib3") -- cgit v1.2.3