From e90051808badf801050c0034e5c045fec8aef6d2 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 11 Jan 2016 13:24:30 -0500 Subject: gnu: Add version 2.7 variant of python-requests. * gnu/packages/python.scm (python-requests-2.7): New variable. --- gnu/packages/python.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4ab1eede6c..5f6ac799df 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2182,6 +2182,18 @@ compatible install in a way that is very close to the on-disk format.") than Python’s urllib2 library.") (license asl2.0))) +;; Some software requires an older version of Requests, notably Docker +;; Compose. +(define-public python-requests-2.7 + (package (inherit python-requests) + (version "2.7.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "requests" version)) + (sha256 + (base32 + "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir")))))) + (define-public python2-requests (package-with-python2 python-requests)) -- cgit 1.4.1 From ea521b42c219d3dc08bef98cba498e988e76a620 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 11 Jan 2016 13:26:07 -0500 Subject: gnu: Add python-vcversioner. * gnu/packages/python.scm (python-vcversioner, python2-vcversioner): New variables. --- gnu/packages/python.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5f6ac799df..91629e819d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2197,6 +2197,30 @@ than Python’s urllib2 library.") (define-public python2-requests (package-with-python2 python-requests)) +(define-public python-vcversioner + (package + (name "python-vcversioner") + (version "2.14.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "vcversioner" version)) + (sha256 + (base32 + "11ivq1bm7v0yb4nsfbv9m7g7lyjn112gbvpjnjz8nv1fx633dm5c")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools))) + (synopsis "Python library for version number discovery") + (description "Vcversioner is a Python library that inspects tagging +information in a variety of version control systems in order to discover +version numbers.") + (home-page "https://github.com/habnabit/vcversioner") + (license isc))) + +(define-public python2-vcversioner + (package-with-python2 python-vcversioner)) + (define-public python-jsonschema (package (name "python-jsonschema") -- cgit 1.4.1 From b3667afbd2c40e3303816452afdfcebefa9d2ea8 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 11 Jan 2016 13:26:47 -0500 Subject: gnu: Update python-jsonschema to 2.5.1. * gnu/packages/python.scm (python-jsonschema): Update to 2.5.1. [inputs]: Add python-vcversioner. --- gnu/packages/python.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 91629e819d..e1009cc2ca 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2224,7 +2224,7 @@ version numbers.") (define-public python-jsonschema (package (name "python-jsonschema") - (version "2.4.0") + (version "2.5.1") (source (origin (method url-fetch) (uri @@ -2233,10 +2233,11 @@ version numbers.") version ".tar.gz")) (sha256 (base32 - "1yik3031ziygvq66rj3mzfqdgxj29sg1bkfc46wsgi7lnbqs560j")))) + "0hddbqjm4jq63y8jf44nswina1crjs16l9snb6m3vvgyg31klrrn")))) (build-system python-build-system) (inputs - `(("python-setuptools" ,python-setuptools))) + `(("python-setuptools" ,python-setuptools) + ("python-vcversioner" ,python-vcversioner))) (home-page "http://github.com/Julian/jsonschema") (synopsis "Implementation of JSON Schema for Python") (description -- cgit 1.4.1 From 210bf49754f397e229a4e1a81f8d16a52dcdef7a Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 11 Jan 2016 13:27:31 -0500 Subject: gnu: Add python-texttable. * gnu/packages/python.scm (python-texttable, python2-texttable): New variables. --- gnu/packages/python.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e1009cc2ca..4081362f2f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6657,3 +6657,25 @@ the standard library.") (define-public python2-contextlib2 (package-with-python2 python-contextlib2)) + +(define-public python-texttable + (package + (name "python-texttable") + (version "0.8.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "texttable" version)) + (sha256 + (base32 + "0bkhs4dx9s6g7fpb969hygq56hyz4ncfamlynw72s0n6nqfbd1w5")))) + (build-system python-build-system) + (arguments '(#:tests? #f)) ; no tests + (home-page "https://github.com/foutaise/texttable/") + (synopsis "Python module for creating simple ASCII tables") + (description "Texttable is a Python module for creating simple ASCII +tables.") + (license lgpl2.1+))) + +(define-public python2-texttable + (package-with-python2 python-texttable)) -- cgit 1.4.1 From 67c52bb3e7fd0b50dc201739049a82a14175f3ee Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 11 Jan 2016 13:28:05 -0500 Subject: gnu: Add python-websocket-client. * gnu/packages/python.scm (python-websocket-client): New variable. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4081362f2f..6b0721b496 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6679,3 +6679,30 @@ tables.") (define-public python2-texttable (package-with-python2 python-texttable)) + +(define-public python-websocket-client + (package + (name "python-websocket-client") + (version "0.34.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/w" + "/websocket-client/websocket_client-" + version ".tar.gz")) + (sha256 + (base32 + "1prdx6d49f1cff17kzj15bnz09palfdgc1m5dkq9jd4mr90n4ak8")))) + (build-system python-build-system) + (native-inputs + `(("python-six" ,python-six))) ; for tests + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/liris/websocket-client") + (synopsis "WebSocket client for Python") + (description "The Websocket-client module provides the low level APIs for +WebSocket usage in Python programs.") + (license lgpl2.1+))) + +(define-public python2-websocket-client + (package-with-python2 python-websocket-client)) -- cgit 1.4.1 From 5c6eea2ad10838f702fc1bbec2bfe711f0c6286a Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 29 Dec 2015 23:57:00 -0500 Subject: gnu: Add python-atomicwrites. * gnu/packages/python.scm (python-atomicwrites): New variable. --- gnu/packages/python.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6b0721b496..dd9878fa29 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6706,3 +6706,20 @@ WebSocket usage in Python programs.") (define-public python2-websocket-client (package-with-python2 python-websocket-client)) + +(define-public python-atomicwrites + (package + (name "python-atomicwrites") + (version "0.1.8") + (source (origin + (method url-fetch) + (uri (pypi-uri "atomicwrites" version)) + (sha256 + (base32 + "13nwk0gw0yb61pnf5vxs3fvhav6q3zrf08x9ggc93bnk5fsssx1j")))) + (build-system python-build-system) + (synopsis "Atomic file writes in Python") + (description "Library for atomic file writes using platform dependent tools +for atomic filesystem operations.") + (home-page "https://github.com/untitaker/python-atomicwrites") + (license license:expat))) -- cgit 1.4.1 From 561bb3cb1af2dd499c8fa38441d15ea6bafa2177 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 9 Dec 2015 19:09:19 -0500 Subject: gnu: Add python-requests-toolbelt. * gnu/packages/python.scm (python-requests-toolbelt): New variable. --- gnu/packages/python.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index dd9878fa29..cd02504ad8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6723,3 +6723,22 @@ WebSocket usage in Python programs.") for atomic filesystem operations.") (home-page "https://github.com/untitaker/python-atomicwrites") (license license:expat))) + +(define-public python-requests-toolbelt + (package + (name "python-requests-toolbelt") + (version "0.5.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "requests-toolbelt" version)) + (sha256 + (base32 + "1kbms1s52dhb98vbpaprr15b0ijdbqp500lpfsyjccpd8cjkyngk")))) + (build-system python-build-system) + (propagated-inputs + `(("python-requests" ,python-requests))) + (synopsis "Extensions to python-requests") + (description "This is a toolbelt of useful classes and functions to be used +with python-requests.") + (home-page "https://github.com/sigmavirus24/requests-toolbelt") + (license asl2.0))) -- cgit 1.4.1 From d1deb90b3f9d6cb0d0f68b8bd096db2a5053a464 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 9 Dec 2015 19:10:47 -0500 Subject: gnu: Add python-click-threading. * gnu/packages/python.scm (python-click-threading): New variable. --- gnu/packages/python.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index cd02504ad8..30a6059793 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6742,3 +6742,22 @@ for atomic filesystem operations.") with python-requests.") (home-page "https://github.com/sigmavirus24/requests-toolbelt") (license asl2.0))) + +(define-public python-click-threading + (package + (name "python-click-threading") + (version "0.1.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "click-threading" version)) + (sha256 + (base32 + "0jmrv4334lfxa2ss53c06dafdwqbk1pb3ihd26izn5igw1bm8145")))) + (build-system python-build-system) + (propagated-inputs + `(("python-click" ,python-click))) + (synopsis "Utilities for multithreading in Click") + (description "This package provides utilities for multithreading in Click +applications.") + (home-page "https://github.com/click-contrib/click-threading") + (license license:expat))) -- cgit 1.4.1 From 7b17cab9020c716b4cb6a2bf9f6e001722c704c1 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 9 Dec 2015 19:11:19 -0500 Subject: gnu: Add python-click-log. * gnu/packages/python.scm (python-click-log): New variable. --- gnu/packages/python.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 30a6059793..dfd554096e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6761,3 +6761,22 @@ with python-requests.") applications.") (home-page "https://github.com/click-contrib/click-threading") (license license:expat))) + +(define-public python-click-log + (package + (name "python-click-log") + (version "0.1.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "click-log" version)) + (sha256 + (base32 + "1z3jdwjmwax159zrnyx830xa968rfqrpkm04ad5xqyh0269ydiqb")))) + (build-system python-build-system) + (propagated-inputs + `(("python-click" ,python-click))) + (synopsis "Logging for click applications") + (description "This package provides a Python library for logging Click +applications.") + (home-page "https://github.com/click-contrib/click-log") + (license license:expat))) -- cgit 1.4.1 From 7b3a4ee4c38d4932a560fb4621667ef8b745cad1 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 29 Dec 2015 06:04:15 -0500 Subject: gnu: Add python-apipkg. * gnu/packages/python.scm (python-apipkg): New variable. --- gnu/packages/python.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index dfd554096e..f848395d06 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6780,3 +6780,25 @@ applications.") applications.") (home-page "https://github.com/click-contrib/click-log") (license license:expat))) + +(define-public python-apipkg + (package + (name "python-apipkg") + (version "1.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "apipkg" version)) + (sha256 + (base32 + "1iks5701qnp3dlr3q1d9qm68y2plp2m029irhpz92a44psfkjf1f")))) + (build-system python-build-system) + (native-inputs + `(("unzip" ,unzip))) + (propagated-inputs + `(("python-pytest" ,python-pytest))) + (synopsis "Namespace control and lazy-import mechanism") + (description "With apipkg you can control the exported namespace of a Python +package and greatly reduce the number of imports for your users. It is a small +pure Python module that works on virtually all Python versions.") + (home-page "https://bitbucket.org/hpk42/apipkg") + (license license:expat))) -- cgit 1.4.1 From 848964fe11e26f7d05301b0d496099e960834c5d Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 29 Dec 2015 05:59:46 -0500 Subject: gnu: Add python-execnet. * gnu/packages/python.scm (python-execnet): New variable. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f848395d06..6f83e3df20 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6802,3 +6802,31 @@ package and greatly reduce the number of imports for your users. It is a small pure Python module that works on virtually all Python versions.") (home-page "https://bitbucket.org/hpk42/apipkg") (license license:expat))) + +(define-public python-execnet + (package + (name "python-execnet") + (version "1.4.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "execnet" version)) + (sha256 + (base32 + "1rpk1vyclhg911p3hql0m0nrpq7q7mysxnaaw6vs29cpa6kx8vgn")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm))) + (propagated-inputs + `(("python-apipkg" ,python-apipkg))) + (synopsis "Rapid multi-Python deployment") + (description "Execnet provides a share-nothing model with +channel-send/receive communication for distributing execution across many +Python interpreters across version, platform and network barriers. It has a +minimal and fast API targetting the following uses: +@enumerate +@item distribute tasks to (many) local or remote CPUs +@item write and deploy hybrid multi-process applications +@item write scripts to administer multiple environments +@end enumerate") + (home-page "http://codespeak.net/execnet/") + (license license:expat))) -- cgit 1.4.1 From 6720dbb49f2ac8fdffa68a9816a79a4c39b56f65 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 29 Dec 2015 05:42:16 -0500 Subject: gnu: Add python-pytest-cache. * gnu/packages/python.scm (python-pytest-cache): New variable. --- gnu/packages/python.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6f83e3df20..6d9289b3db 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6830,3 +6830,23 @@ minimal and fast API targetting the following uses: @end enumerate") (home-page "http://codespeak.net/execnet/") (license license:expat))) + +;;; The software provided by this package was integrated into pytest 2.8. +(define-public python-pytest-cache + (package + (name "python-pytest-cache") + (version "1.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "pytest-cache" version)) + (sha256 + (base32 + "1a873fihw4rhshc722j4h6j7g3nj7xpgsna9hhg3zn6ksknnhx5y")))) + (build-system python-build-system) + (propagated-inputs + `(("python-execnet" ,python-execnet))) + (synopsis "Py.test plugin with mechanisms for caching across test runs") + (description "The pytest-cache plugin provides tools to rerun failures from +the last py.test invocation.") + (home-page "https://bitbucket.org/hpk42/pytest-cache/") + (license license:expat))) -- cgit 1.4.1 From d7e729fe08284b15aee074eb61c964953c04d0a2 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 30 Dec 2015 00:11:38 -0500 Subject: gnu: Add python-pytest-localserver. * gnu/packages/python.scm (python-pytest-localserver): New variable. --- gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6d9289b3db..d45db218e1 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6850,3 +6850,33 @@ minimal and fast API targetting the following uses: the last py.test invocation.") (home-page "https://bitbucket.org/hpk42/pytest-cache/") (license license:expat))) + +(define-public python-pytest-localserver + (package + (name "python-pytest-localserver") + (version "0.3.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "pytest-localserver" version ".zip")) + (sha256 + (base32 + "050q505a7gnsz7vqidw0w5dvxjb2flzi7z734agpjzmsl85c2bcx")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda _ + (zero? (system* "py.test" "--genscript=runtests.py")) + (zero? (system* "py.test"))))))) + (native-inputs + `(("unzip" ,unzip))) + (propagated-inputs + `(("python-pytest" ,python-pytest) + ("python-requests" ,python-requests) + ("python-six" ,python-six) + ("python-werkzeug" ,python-werkzeug))) + (synopsis "Py.test plugin to test server connections locally") + (description "Pytest-localserver is a plugin for the pytest testing +framework which enables you to test server connections locally.") + (home-page "https://pypi.python.org/pypi/pytest-localserver") + (license license:expat))) -- cgit 1.4.1 From 28cecbb7ccbb87593d5f81b4ab0a7d32477b10f4 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 29 Dec 2015 06:09:39 -0500 Subject: gnu: Add python-wsgi-intercept. * gnu/packages/python.scm (python-wsgi-intercept): New variable. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index d45db218e1..9bc8b8dfef 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6880,3 +6880,30 @@ the last py.test invocation.") framework which enables you to test server connections locally.") (home-page "https://pypi.python.org/pypi/pytest-localserver") (license license:expat))) + +(define-public python-wsgi-intercept + (package + (name "python-wsgi-intercept") + (version "0.10.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "wsgi_intercept" version)) + (sha256 + (base32 + "0xyfchacywb1mql84270mcidsqc5ssyspd18yacjk82x2xc68h0r")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-httplib2" ,python-httplib2) + ("python-requests" ,python-requests))) + (synopsis "Puts a WSGI application in place of a real URI for testing") + (description "Wsgi_intercept installs a WSGI application in place of a real +URI for testing. Testing a WSGI application normally involves starting a +server at a local host and port, then pointing your test code to that address. +Instead, this library lets you intercept calls to any specific host/port +combination and redirect them into a WSGI application importable by your test +program. Thus, you can avoid spawning multiple processes or threads to test +your Web app.") + (home-page "https://github.com/cdent/wsgi-intercept") + (license license:expat))) -- cgit 1.4.1 From 89b8a5516fe3c72befc256652cfb27cb41a4f977 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 30 Dec 2015 00:13:53 -0500 Subject: gnu: Add python-pytest-xprocess. * gnu/packages/python.scm (python-pytest-xprocess): New variable. --- 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 9bc8b8dfef..7b400d11cc 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6907,3 +6907,24 @@ program. Thus, you can avoid spawning multiple processes or threads to test your Web app.") (home-page "https://github.com/cdent/wsgi-intercept") (license license:expat))) + +(define-public python-pytest-xprocess + (package + (name "python-pytest-xprocess") + (version "0.9.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "pytest-xprocess" version)) + (sha256 + (base32 + "17zlql1xqw3ywcgwwbqmw633aly99lab12hm02asr8awvg5603pp")))) + (build-system python-build-system) + (propagated-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-cache" ,python-pytest-cache) + ("python-psutil" ,python-psutil))) + (synopsis "Pytest plugin to manage external processes across test runs") + (description "Pytest-xprocess is an experimental py.test plugin for managing +processes across test runs.") + (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess") + (license license:expat))) -- cgit 1.4.1 From 5c299bf016b822997c012db988e73fcaef113321 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 9 Dec 2015 19:11:46 -0500 Subject: gnu: Add python-icalendar. * gnu/packages/python.scm (python-icalendar): New variable. --- gnu/packages/python.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 7b400d11cc..0eb3c85a80 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6928,3 +6928,23 @@ your Web app.") processes across test runs.") (home-page "https://bitbucket.org/pytest-dev/pytest-xprocess") (license license:expat))) + +(define-public python-icalendar + (package + (name "python-icalendar") + (version "3.9.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "icalendar" version)) + (sha256 + (base32 + "0fhrczdj3jxy5bvswphp3vys7vwv5c9bpwg7asykqwa3z6253q6q")))) + (build-system python-build-system) + (propagated-inputs + `(("python-dateutil-2" ,python-dateutil-2) + ("python-pytz" ,python-pytz))) + (synopsis "Python library for parsing iCalendar files") + (description "The icalendar package is a parser/generator of iCalendar +files for use with Python.") + (home-page "https://github.com/collective/icalendar") + (license bsd-2))) -- cgit 1.4.1 From 6bbbb53eeb3f178efbff72ed0bb279fa02d31a7c Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 9 Dec 2015 20:07:55 -0500 Subject: gnu: Add python-sphinxcontrib-newsfeed. * gnu/packages/python.scm (python-sphinxcontrib-newsfeed): New variable. --- gnu/packages/python.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0eb3c85a80..2e10233e5b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6948,3 +6948,23 @@ processes across test runs.") files for use with Python.") (home-page "https://github.com/collective/icalendar") (license bsd-2))) + +(define-public python-sphinxcontrib-newsfeed + (package + (name "python-sphinxcontrib-newsfeed") + (version "0.1.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "sphinxcontrib-newsfeed" version)) + (sha256 + (base32 + "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p")))) + (build-system python-build-system) + (propagated-inputs + `(("python-docutils" ,python-docutils) + ("python-sphinx" ,python-sphinx))) + (synopsis "News Feed extension for Sphinx") + (description "Sphinxcontrib-newsfeed is an extension for adding a simple +Blog, News or Announcements section to a Sphinx website.") + (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed") + (license bsd-2))) -- cgit 1.4.1 From 226d333103dd648b0efa86345da751abb763b6a4 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 29 Dec 2015 06:11:33 -0500 Subject: gnu: Update python-tzlocal to 1.2. * gnu/packages/python.scm (python-tzlocal): Update to 1.2. [source]: Use pypi-uri. [arguments]: Remove the custom 'unpack phase. [native-inputs]: Remove unzip, python-setuptools. [propagated-inputs]: Add python-pytz. --- gnu/packages/python.scm | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2e10233e5b..32da247bff 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1014,31 +1014,16 @@ doing practical, real world data analysis in Python.") (define-public python-tzlocal (package (name "python-tzlocal") - (version "1.1.1") + (version "1.2") (source (origin (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/source/t/" - "tzlocal/tzlocal-" version ".zip")) + (uri (pypi-uri "tzlocal" version)) (sha256 (base32 - "1m3y918c3chf41fwg2bx4w42bqsjzn3dyvvcmwwy13c8gj6zssv9")))) + "12wsw2fl3adrqrwghasld57bhqdrzn0crblqrci1p5acd0ni53s3")))) (build-system python-build-system) - (native-inputs - `(("unzip" ,unzip) - ("python-setuptools" ,python-setuptools))) - (inputs `(("python-pytz" ,python-pytz))) - (arguments - `(#:phases - (alist-replace - 'unpack - (lambda _ - (let ((unzip (string-append (assoc-ref %build-inputs "unzip") - "/bin/unzip")) - (source (assoc-ref %build-inputs "source"))) - (and (zero? (system* unzip source)) - (chdir (string-append "tzlocal-" ,version))))) - %standard-phases))) + (propagated-inputs `(("python-pytz" ,python-pytz))) (home-page "https://github.com/regebro/tzlocal") (synopsis "Local timezone information for Python") -- cgit 1.4.1 From b97c1bfd5675a4465f006d4c36f8953b005e40b8 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sun, 3 Jan 2016 14:07:33 -0500 Subject: gnu: python-urwid: Disable failing test test_remove_watch_file. * gnu/packages/python.scm (python-urwid)[arguments]: Add 'disable-failing-test' phase. [source]: Use pypi-uri. --- gnu/packages/python.scm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 32da247bff..c3e9f42ec1 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4361,13 +4361,22 @@ and written in Python.") (source (origin (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/source/u/urwid/urwid-" - version ".tar.gz")) + (uri (pypi-uri "urwid" version)) (sha256 (base32 "18mb0yy94sjc434rd61m2sfnw27sa0nyrszpj5a9r9zh7fnlzw19")))) (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Disable failing test. Bug filed upstream: + ;; https://github.com/wardi/urwid/issues/164 + ;; TODO: check again for python-urwid > 1.3.0 or python > 3.4.3. + (add-after 'unpack 'disable-failing-test + (lambda _ + (substitute* "urwid/tests/test_event_loops.py" + (("test_remove_watch_file") + "disable_remove_watch_file"))))))) (native-inputs `(("python-setuptools" ,python-setuptools))) (home-page "http://urwid.org") (synopsis "Console user interface library for Python") -- cgit 1.4.1 From 2216e15cc310a52026adb3542897b4221c793d55 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Wed, 13 Jan 2016 09:21:56 +0800 Subject: gnu: Add python-args. * gnu/packages.scm (python-args, python2-args): New variables. --- gnu/packages/python.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c3e9f42ec1..40f086432f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6962,3 +6962,25 @@ files for use with Python.") Blog, News or Announcements section to a Sphinx website.") (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed") (license bsd-2))) + +(define-public python-args + (package + (name "python-args") + (version "0.1.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "args" version)) + (sha256 + (base32 + "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/kennethreitz/args") + (synopsis "Command-line argument parser") + (description + "This library provides a Python module to parse command-line arguments.") + (license bsd-3))) + +(define-public python2-args + (package-with-python2 python-args)) -- cgit 1.4.1 From c06a3de93a98ba3e5ca67d9fa283e2190ef9fe09 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Wed, 13 Jan 2016 09:23:05 +0800 Subject: gnu: Add python-clint. * gnu/packages/python.scm (python-clint, python2-clint): New variables. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 40f086432f..b9de9cc5f5 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6984,3 +6984,28 @@ Blog, News or Announcements section to a Sphinx website.") (define-public python2-args (package-with-python2 python-args)) + +(define-public python-clint + (package + (name "python-clint") + (version "0.5.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "clint" version)) + (sha256 + (base32 + "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5")))) + (build-system python-build-system) + (inputs + `(("python-args" ,python-args) + ("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/kennethreitz/clint") + (synopsis "Command-line interface tools") + (description + "Clint is a Python module filled with a set of tools for developing +command-line applications, including tools for colored and indented +output, progress bar display, and pipes.") + (license isc))) + +(define-public python2-clint + (package-with-python2 python-clint)) -- cgit 1.4.1 From 4ecdeef8aed9e0dc0e338c205773f11249dcb238 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Wed, 13 Jan 2016 09:23:43 +0800 Subject: gnu: Add python-astor. * gnu/packages/python.scm (python-astor, python2-astor): New variables. --- gnu/packages/python.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b9de9cc5f5..84e93d9ab3 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7009,3 +7009,26 @@ output, progress bar display, and pipes.") (define-public python2-clint (package-with-python2 python-clint)) + +(define-public python-astor + (package + (name "python-astor") + (version "0.5") + (source (origin + (method url-fetch) + (uri (pypi-uri "astor" version)) + (sha256 + (base32 + "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/berkerpeksag/astor") + (synopsis "Read and write Python ASTs") + (description + "Astor is designed to allow easy manipulation of Python source via the +Abstract Syntax Tree.") + (license bsd-3))) + +(define-public python2-astor + (package-with-python2 python-astor)) -- cgit 1.4.1 From e224b7d0bdfc58e251ba57f03c1ff74c7b4c2c62 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Wed, 13 Jan 2016 09:24:15 +0800 Subject: gnu: Add python-rply. * gnu/packages/python.scm (python-rply, python2-rply): New variables. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 84e93d9ab3..ee6da2cdbf 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7032,3 +7032,28 @@ Abstract Syntax Tree.") (define-public python2-astor (package-with-python2 python-astor)) + +(define-public python-rply + (package + (name "python-rply") + (version "0.7.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "rply" version)) + (sha256 + (base32 + "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj")))) + (build-system python-build-system) + (inputs + `(("python-appdirs" ,python-appdirs) + ("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/alex/rply") + (synopsis "Parser generator for Python") + (description + "This package provides a pure Python based parser generator, that also +works with RPython. It is a more-or-less direct port of David Bazzley's PLY, +with a new public API, and RPython support.") + (license bsd-3))) + +(define-public python2-rply + (package-with-python2 python-rply)) -- cgit 1.4.1 From c3e919d7a07dfe0b135eac8c2801d37587c47090 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Wed, 13 Jan 2016 09:24:39 +0800 Subject: gnu: Add python-hy. * gnu/packages/python.scm (python-hy, python2-hy): New variables. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ee6da2cdbf..cda995c440 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7057,3 +7057,30 @@ with a new public API, and RPython support.") (define-public python2-rply (package-with-python2 python-rply)) + +(define-public python-hy + (package + (name "python-hy") + (version "0.11.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "hy" version)) + (sha256 + (base32 + "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs")))) + (build-system python-build-system) + (inputs + `(("python-astor" ,python-astor) + ("python-clint" ,python-clint) + ("python-rply" ,python-rply) + ("python-setuptools" ,python-setuptools))) + (home-page "http://hylang.org/") + (synopsis "Lisp frontend to Python") + (description + "Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms +its Lisp code into the Python Abstract Syntax Tree, you have the whole world of +Python at your fingertips, in Lisp form.") + (license license:expat))) + +(define-public python2-hy + (package-with-python2 python-hy)) -- cgit 1.4.1 From 7a5b944eb5bc9df149cca4eb018e58e106084fbb Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 24 Nov 2015 22:33:31 +0200 Subject: gnu: Add python-futures. * gnu/packages/python.scm (python-futures, python2-futures): New variables. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index cda995c440..8e0019eb43 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7084,3 +7084,29 @@ Python at your fingertips, in Lisp form.") (define-public python2-hy (package-with-python2 python-hy)) + +(define-public python-futures + (package + (name "python-futures") + (version "3.0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "futures" version)) + (sha256 + (base32 + "1vcb34dqhzkhbq1957vdjszhhm5y3j9ba88dgwhqx2zynhmk9qig")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/agronholm/pythonfutures") + (synopsis + "Backport of the concurrent.futures package from Python 3.2") + (description + "The concurrent.futures module provides a high-level interface for +asynchronously executing callables. This package backports the +concurrent.futures package from Python 3.2") + (license bsd-3))) + +(define-public python2-futures + (package-with-python2 python-futures)) -- cgit 1.4.1 From 81f7f29752525bfe3395036fb94fa059c95893f2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 22 Nov 2015 22:43:51 +0200 Subject: gnu: Add python-rauth. * gnu/packages/python.scm (python-rauth, python2-rauth): New variables. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8e0019eb43..0c3df3b296 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7085,6 +7085,39 @@ Python at your fingertips, in Lisp form.") (define-public python2-hy (package-with-python2 python-hy)) +(define-public python-rauth + (package + (name "python-rauth") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rauth" version)) + (sha256 + (base32 + "00pq7zw429hhza9c0qzxiqp77m653jv09z92nralnmzwdf6pzicf")))) + (build-system python-build-system) + (arguments + `(#:test-target "check")) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (propagated-inputs + `(("python-requests" ,python-requests))) + (home-page "https://github.com/litl/rauth") + (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly") + (description + "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also +provides service wrappers for convenient connection initialization and +authenticated session objects providing things like keep-alive.") + (license license:expat))) + +(define-public python2-rauth + (let ((rauth (package-with-python2 python-rauth))) + (package (inherit rauth) + (native-inputs + `(("python2-unittest2", python2-unittest2) + ,@(package-native-inputs rauth)))))) + (define-public python-futures (package (name "python-futures") -- cgit 1.4.1 From 5988c299c4bf8d7adf399a885849db7c99b668df Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 24 Nov 2015 18:25:36 +0200 Subject: gnu: Add python-pyasn1-modules. * gnu/packages/python.scm (python-pyasn1-modules) (python2-pyasn1-modules): New variables. --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0c3df3b296..76589ff43c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5642,6 +5642,32 @@ suitable for a wide range of protocols based on the ASN.1 specification.") (define-public python2-pyasn1 (package-with-python2 python-pyasn1)) +(define-public python-pyasn1-modules + (package + (name "python-pyasn1-modules") + (version "0.0.8") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyasn1-modules" version)) + (sha256 + (base32 + "0drqgw81xd3fxdlg89kgd79zzrabvfncvkbybi2wr6w2y4s1jmhh")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (propagated-inputs + `(("python-pyasn1" ,python-pyasn1))) + (home-page "http://sourceforge.net/projects/pyasn1/") + (synopsis "ASN.1 codec implementations") + (description + "Pyasn1-modules is a collection of Python modules providing ASN.1 types and +implementations of ASN.1-based codecs and protocols.") + (license bsd-3))) + +(define-public python2-pyasn1-modules + (package-with-python2 python-pyasn1-modules)) + (define-public python2-ipaddress (package (name "python2-ipaddress") -- cgit 1.4.1 From 1abe448d56d415a4b9280a22741112f8436a6a0a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 3 Dec 2015 16:04:54 +0200 Subject: gnu: Add python2-functools32. * gnu/packages/python.scm (python2-functools32): New variable. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 76589ff43c..8358c8890b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7144,6 +7144,31 @@ authenticated session objects providing things like keep-alive.") `(("python2-unittest2", python2-unittest2) ,@(package-native-inputs rauth)))))) +(define-public python2-functools32 + (package + (name "python2-functools32") + (version "3.2.3-2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "functools32" version)) + (sha256 + (base32 + "0v8ya0b58x47wp216n1zamimv4iw57cxz3xxhzix52jkw3xks9gn")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2 + #:tests? #f)) ; no test target + (native-inputs + `(("python2-setuptools" ,python2-setuptools))) + (home-page "https://github.com/MiCHiLU/python-functools32") + (synopsis + "Backport of the functools module from Python 3.2.3") + (description + "This package is a backport of the @code{functools} module from Python +3.2.3 for use with older versions of Python and PyPy.") + (license license:expat))) + (define-public python-futures (package (name "python-futures") -- cgit 1.4.1 From 10468636ff823b77f04ae0de03a9f78691a0bbd8 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 27 Dec 2015 09:00:14 +0200 Subject: gnu: python-pytest-cov: Clarify description. * gnu/packages/python.scm (python-pytest-cov): Do it. --- gnu/packages/python.scm | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8358c8890b..76bce72352 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1610,18 +1610,18 @@ and many external plugins.") (sha256 (base32 "1lf9jsmhqk5nc4w3kzwglmdzjvmi7ajvrsnwv826j3bn0wzx8c92")))) - (build-system python-build-system) - (propagated-inputs - `(("python-coverage" ,python-coverage) - ("python-pytest" ,python-pytest))) - (native-inputs - `(("python-setuptools" ,python-setuptools))) - (home-page "https://github.com/pytest-dev/pytest-cov") - (synopsis "Pytest plugin for measuring coverage") - (description - "Pytest-cov produces coverage reports. It supports centralised testing and -distributed testing in both load and each modes. It also supports coverage -of subprocesses.") + (build-system python-build-system) + (propagated-inputs + `(("python-coverage" ,python-coverage) + ("python-pytest" ,python-pytest))) + (native-inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/pytest-dev/pytest-cov") + (synopsis "Pytest plugin for measuring coverage") + (description + "Pytest-cov produces coverage reports. It supports centralised testing and +distributed testing in both @code{load} and @code{each} modes. It also +supports coverage of subprocesses.") (license license:expat))) (define-public python2-pytest-cov -- cgit 1.4.1 From e1ba074999747c8416355322361e2a6d158c6228 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 27 Dec 2015 09:39:51 +0200 Subject: gnu: python-wheel: Clarify description. * gnu/packages/python.scm (python-wheel): Do it. --- gnu/packages/python.scm | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 76bce72352..13ad87fc8d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2119,25 +2119,29 @@ with sensible defaults out of the box.") (package (name "python-wheel") (version "0.26.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "wheel" version)) - (sha256 - (base32 - "032k1ajijbqnv0z0k88bhf75mdimi18fcmm28mss90610lw3bbga")))) - (build-system python-build-system) - (native-inputs - `(("python-setuptools" ,python-setuptools) - ("python-jsonschema" ,python-jsonschema) - ("python-pytest-cov" ,python-pytest-cov))) - (home-page "https://bitbucket.org/pypa/wheel/") - (synopsis "Built-package format for Python") - (description - "A wheel is a ZIP-format archive with a specially formatted filename and the -.whl extension. It is designed to contain all the files for a PEP 376 -compatible install in a way that is very close to the on-disk format.") - (license license:expat))) + (source + (origin + (method url-fetch) + (uri (pypi-uri "wheel" version)) + (sha256 + (base32 + "032k1ajijbqnv0z0k88bhf75mdimi18fcmm28mss90610lw3bbga")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools) + ("python-jsonschema" ,python-jsonschema) + ("python-pytest-cov" ,python-pytest-cov))) + (home-page "https://bitbucket.org/pypa/wheel/") + (synopsis "Format for built Python packages") + (description + "A wheel is a ZIP-format archive with a specially formatted filename and +the @code{.whl} extension. It is designed to contain all the files for a PEP +376 compatible install in a way that is very close to the on-disk format. Many +packages will be properly installed with only the @code{Unpack} step and the +unpacked archive preserves enough information to @code{Spread} (copy data and +scripts to their final locations) at any later time. Wheel files can be +installed with a newer @code{pip} or with wheel's own command line utility.") + (license license:expat))) (define-public python2-wheel (package-with-python2 python-wheel)) -- cgit 1.4.1 From c18f6368239de2c4be6560a4e0fa68a36c45374d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 27 Dec 2015 19:50:57 +0200 Subject: gnu: Add python-urllib3. * gnu/packages/python.scm (python-urllib3, python2-urllib3): New variables. --- gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 13ad87fc8d..a1757a08fc 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7198,3 +7198,39 @@ concurrent.futures package from Python 3.2") (define-public python2-futures (package-with-python2 python-futures)) + +(define-public python-urllib3 + (package + (name "python-urllib3") + (version "1.13.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "urllib3" version)) + (sha256 + (base32 + "10rrbr6c6k7j5dvfsyj4b2gsgxg9gggnn708qixf6ll57xqivfkf")))) + (build-system python-build-system) + (arguments `(#:tests? #f)) + (native-inputs + `(("python-setuptools" ,python-setuptools) + ;; some packages for tests + ("python-nose" ,python-nose) + ("python-mock" ,python-mock) + ("python-tornado" ,python-tornado))) + (propagated-inputs + `(;; packages for https security + ("python-certifi" ,python-certifi) + ("python-ndg-httpsclient" ,python-ndg-httpsclient) + ("python-pyasn1" ,python-pyasn1) + ("python-pyopenssl" ,python-pyopenssl))) + (home-page "http://urllib3.readthedocs.org/") + (synopsis "HTTP library with thread-safe connection pooling") + (description + "Urllib3 supports features left out of urllib and urllib2 libraries. It +can reuse the same socket connection for multiple requests, it can POST files, +supports url redirection and retries, and also gzip and deflate decoding.") + (license license:expat))) + +(define-public python2-urllib3 + (package-with-python2 python-urllib3)) -- cgit 1.4.1 From 264ae686fae658c90716632715846d34aa61b9f3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 18 Jan 2016 12:54:52 +0200 Subject: python2-jsonschema: Add python2-functools32 to inputs. * gnu/packages/python.scm (python2-jsonschema)[inputs]: Add python2-functools32. (python2-wheel)[native-inputs]: Specify python2-jsonschema. Add python2-functools32. (python2-requests)[propagated-inputs]: Specify python2-wheel. (python2-ipython)[inputs]: Specify python2-jsonschema, python2-requests. (python2-rauth)[propagated-inputs]: Specify python2-requests. * gnu/packages/openstack.scm (python2-requests-mock)[propagated-inputs]: Specify python2-requests. (python2-tempest-lib)[propagated-inputs]: Specify python2-jsonschema. (python2-oslosphinx)[propagated-inputs]: Specify python2-requests. (python2-keystoneclient)[porpagated-inputs]: Specify python2-requests. [native-inputs]: Specify python2-oslosphinx, python2-requests-mock, python2-tempest-lib. (python2-swiftclient)[propagated-inputs]: Specify python2-requests, python2-oslosphinx. --- gnu/packages/openstack.scm | 42 +++++++++++++++++++++++++++++++----------- gnu/packages/python.scm | 30 ++++++++++++++++++++++++------ 2 files changed, 55 insertions(+), 17 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index 392ff88291..e258b89e2f 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015 Cyril Roelandt -;;; Copyright © 2015 Efraim Flashner +;;; Copyright © 2015, 2016 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -304,7 +304,12 @@ portions of your testing code.") (license asl2.0))) (define-public python2-requests-mock - (package-with-python2 python-requests-mock)) + (let ((requests-mock (package-with-python2 python-requests-mock))) + (package (inherit requests-mock) + (propagated-inputs + `(("python2-requests" ,python2-requests) + ,@(alist-delete "python-requests" + (package-propagated-inputs requests-mock))))))) (define-public python-stevedore (package @@ -387,7 +392,12 @@ common features used in Tempest.") (license asl2.0))) (define-public python2-tempest-lib - (package-with-python2 python-tempest-lib)) + (let ((tempest-lib (package-with-python2 python-tempest-lib))) + (package (inherit tempest-lib) + (propagated-inputs + `(("python2-jsonschema", python2-jsonschema) + ,@(alist-delete "python-jsonschema" + (package-propagated-inputs tempest-lib))))))) ;; Packages from the Oslo library (define-public python-oslo.config @@ -596,7 +606,9 @@ from the OpenStack project.") (license asl2.0))) (define-public python2-oslosphinx - (package-with-python2 python-oslosphinx)) + (let ((oslosphinx (package-with-python2 python-oslosphinx))) + (package (inherit oslosphinx) + (propagated-inputs `(("python2-requests" ,python2-requests)))))) (define-public python-oslotest (package @@ -745,11 +757,17 @@ LDAP.") (define-public python2-keystoneclient (let ((keystoneclient (package-with-python2 python-keystoneclient))) (package (inherit keystoneclient) + (propagated-inputs + `(("python2-requests" ,python2-requests) + ,@(alist-delete "python-requests" + (package-propagated-inputs keystoneclient)))) (native-inputs `(("python2-oauthlib" ,python2-oauthlib) - ,@(alist-delete - "python-oauthlib" - (package-native-inputs keystoneclient))))))) + ("python2-oslosphinx" ,python2-oslosphinx) + ("python2-requests-mock" ,python2-requests-mock) + ("python2-tempest-lib" ,python2-tempest-lib) + ,@(fold alist-delete (package-native-inputs keystoneclient) + '("python-oauthlib" "python-oslosphinx" "python-requests-mock" "python-tempest-lib"))))))) (define-public python-swiftclient (package @@ -798,9 +816,11 @@ permanence.") (package (inherit swiftclient) (propagated-inputs `(("python2-futures" ,python2-futures) - ,@(package-propagated-inputs swiftclient))) + ("python2-requests" ,python2-requests) + ,@(alist-delete "python-requests" + (package-propagated-inputs swiftclient)))) (native-inputs `(("python2-keystoneclient" ,python2-keystoneclient) - ,@(alist-delete - "python-keystoneclient" - (package-native-inputs swiftclient))))))) + ("python2-oslosphinx" ,python2-oslosphinx) + ,@(fold alist-delete (package-native-inputs swiftclient) + '("python-keystoneclient" "python-oslosphinx"))))))) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a1757a08fc..813711a9b6 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14,7 +14,7 @@ ;;; Copyright © 2015 Leo Famulari ;;; Copyright © 2015 Ben Woodcroft ;;; Copyright © 2015, 2016 Erik Edrosa -;;; Copyright © 2015 Efraim Flashner +;;; Copyright © 2015, 2016 Efraim Flashner ;;; Copyright © 2015 Kyle Meyer ;;; Copyright © 2015 Chris Marusich ;;; @@ -2144,7 +2144,13 @@ installed with a newer @code{pip} or with wheel's own command line utility.") (license license:expat))) (define-public python2-wheel - (package-with-python2 python-wheel)) + (let ((wheel (package-with-python2 python-wheel))) + (package (inherit wheel) + (native-inputs + `(("python2-functools32" ,python2-functools32) + ("python2-jsonschema" ,python2-jsonschema) + ,@(alist-delete "python-jsonschema" + (package-native-inputs wheel))))))) (define-public python-requests (package @@ -2184,7 +2190,12 @@ than Python’s urllib2 library.") "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir")))))) (define-public python2-requests - (package-with-python2 python-requests)) + (let ((requests (package-with-python2 python-requests))) + (package (inherit requests) + (propagated-inputs + `(("python2-wheel" ,python2-wheel) + ,@(alist-delete "python-wheel" + (package-propagated-inputs requests))))))) (define-public python-vcversioner (package @@ -2234,7 +2245,11 @@ version numbers.") (license license:expat))) (define-public python2-jsonschema - (package-with-python2 python-jsonschema)) + (let ((jsonschema (package-with-python2 python-jsonschema))) + (package (inherit jsonschema) + (inputs + `(("python2-functools32" ,python2-functools32) + ,@(package-inputs jsonschema)))))) (define-public python-unidecode (package @@ -4290,11 +4305,13 @@ computing.") ,@(alist-delete "python-terminado" (package-propagated-inputs ipython)))) (inputs - `(("python2-mock" ,python2-mock) + `(("python2-jsonschema" ,python2-jsonschema) + ("python2-mock" ,python2-mock) ("python2-matplotlib" ,python2-matplotlib) ("python2-numpy" ,python2-numpy) + ("python2-requests" ,python2-requests) ,@(fold alist-delete (package-inputs ipython) - '("python-matplotlib" "python-numpy"))))))) + '("python-jsonschema" "python-matplotlib" "python-numpy" "python-requests"))))))) (define-public python-isodate (package @@ -7144,6 +7161,7 @@ authenticated session objects providing things like keep-alive.") (define-public python2-rauth (let ((rauth (package-with-python2 python-rauth))) (package (inherit rauth) + (propagated-inputs `(("python2-requests" ,python2-requests))) (native-inputs `(("python2-unittest2", python2-unittest2) ,@(package-native-inputs rauth)))))) -- cgit 1.4.1