From 025b196d9b739418dd9d305864fdb1fb1d0d5af2 Mon Sep 17 00:00:00 2001 From: Thomas Danckaert Date: Tue, 26 Sep 2017 16:26:08 +0200 Subject: gnu: python-numpy: Update to 1.13.1. * gnu/packages/python.scm (python-numpy, python2-numpy): Update to 1.13.1. [source]: Download the zip release from pypi instead of a git snapshot. [native-inputs]: Add unzip. [arguments]: Set SHELL environment variable. Co-authored by Leo Famulari --- gnu/packages/python.scm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3e266c5ef0..e44462b013 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3720,22 +3720,21 @@ between language specification and implementation aspects.") (define-public python-numpy (package (name "python-numpy") - (version "1.12.0") + (version "1.13.1") (source (origin (method url-fetch) - (uri (string-append - "https://github.com/numpy/numpy/archive/v" version ".tar.gz")) - (file-name (string-append name "-" version ".tar.gz")) + (uri (pypi-uri "numpy" version ".zip")) (sha256 (base32 - "025d4j4aakcp8w5i5diqh812cbbjgac7jszx1j56ivrbi1i8vv7d")))) + "1fsgkhh1vdkhmlz8vmdgxnj9n9yaanckxxzz9s0b4p08fqvjic69")))) (build-system python-build-system) (inputs `(("openblas" ,openblas) ("lapack" ,lapack))) (native-inputs - `(("python-cython" ,python-cython) + `(("unzip" ,unzip) + ("python-cython" ,python-cython) ("python-nose" ,python-nose) ("gfortran" ,gfortran))) (arguments @@ -3743,6 +3742,8 @@ between language specification and implementation aspects.") (modify-phases %standard-phases (add-before 'build 'set-environment-variables (lambda* (#:key inputs #:allow-other-keys) + ;; numpy's distutils uses $SHELL to run external commands. + (setenv "SHELL" "bash") (call-with-output-file "site.cfg" (lambda (port) (format port -- cgit v1.2.3 From 80c3f4d6c04f7112afab5ce309c8b73d9789c79a Mon Sep 17 00:00:00 2001 From: Thomas Danckaert Date: Thu, 28 Sep 2017 12:05:13 +0200 Subject: gnu: python-ipython: Update to 5.3.0. * gnu/packages/python.scm (python-ipython, python2-ipython): Update to 5.3.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 e44462b013..77c4a8347d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5784,13 +5784,13 @@ tools for mocking system commands and recording calls to those.") (define-public python-ipython (package (name "python-ipython") - (version "5.2.2") + (version "5.3.0") (source (origin (method url-fetch) (uri (pypi-uri "ipython" version ".tar.gz")) (sha256 - (base32 "1qhjwa9cyz1np7rhv3p4ip13lkgbqsad62l24xkwiq1ic2gwiqbf")))) + (base32 "079wyjir4a9qx6kvx096b1asm63djbidk65z3ykcbnlngmg62pmz")))) (build-system python-build-system) (outputs '("out" "doc")) (propagated-inputs -- cgit v1.2.3 From ab7f51fa344c757fd2825ce1fff7d6c587d1b609 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Fri, 8 Sep 2017 23:20:07 +0200 Subject: gnu: Add python-pydiff. * gnu/packages/python.scm (python-pydiff, python2-pydiff): 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 77c4a8347d..35a2cec798 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -16301,3 +16301,25 @@ Templates.") (define-public python2-uritemplate (package-with-python2 python-uritemplate)) + +(define-public python-pydiff + (package + (name "python-pydiff") + (version "0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pydiff" version)) + (sha256 + (base32 + "1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44")))) + (build-system python-build-system) + (home-page "https://github.com/myint/pydiff") + (synopsis "Library to diff two Python files at the bytecode level") + (description + "@code{pydiff} makes it easy to look for actual code changes while +ignoring formatting changes.") + (license license:expat))) + +(define-public python2-pydiff + (package-with-python2 python-pydiff)) -- cgit v1.2.3 From 8e483fb540dc636c2f00efcda338b0a7d3f6dcdc Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Fri, 8 Sep 2017 23:58:22 +0200 Subject: gnu: python-autopep8: Update to 1.3.2. * gnu/packages/python.scm (python-autopep8): Update to 1.3.2. --- gnu/packages/python.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 35a2cec798..b566e906de 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4906,17 +4906,17 @@ SQLAlchemy Database Toolkit for Python.") (define-public python-autopep8 (package (name "python-autopep8") - (version "1.2.4") + (version "1.3.2") (source (origin (method url-fetch) (uri (pypi-uri "autopep8" version)) (sha256 (base32 - "18parm383lfn42a00wklv3qf20p4v277f1x3cn58x019dqk1xqrq")))) + "1p9pa1ffg4iy96l918808jggg9a69iaka5awmj8xid36yc5mk0ky")))) (build-system python-build-system) (propagated-inputs - `(("python-pep8" ,python-pep8))) + `(("python-pycodestyle" ,python-pycodestyle))) (home-page "https://github.com/hhatto/autopep8") (synopsis "Format Python code according to the PEP 8 style guide") (description -- cgit v1.2.3 From 30d7207f2e24f837bba5a4d954143c587b54ef49 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Mon, 11 Sep 2017 04:24:29 +0200 Subject: gnu: python-requests-toolbelt: Update to 0.8.0. * gnu/packages/python.scm (python-requests-toolbelt): Udpate to 0.8.0. --- gnu/packages/python.scm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b566e906de..27f260ce86 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9242,16 +9242,13 @@ for atomic file system operations.") (define-public python-requests-toolbelt (package (name "python-requests-toolbelt") - (version "0.6.2") + (version "0.8.0") (source (origin (method url-fetch) - (uri (string-append - "https://pypi.python.org/packages/" - "e1/a4/a94c037bc72ad70441aff1403d3243510d2542ddca7759faaeffeb11aefe/" - "requests-toolbelt-" version ".tar.gz")) + (uri (pypi-uri "requests-toolbelt" version)) (sha256 (base32 - "15q9nrgp85nqlr4kdz1zvj8z2npafi2sr12y7fqgxbkq28j1aci6")))) + "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn")))) (build-system python-build-system) (native-inputs `(("python-betamax" ,python-betamax) -- cgit v1.2.3 From 74e9895f2da73a3ff6d8f79811ec41532402c93d Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Mon, 11 Sep 2017 04:28:26 +0200 Subject: gnu: Add python2-requests-toolbelt. * gnu/packages/python.scm (python2-requests-toolbelt): New variable. --- gnu/packages/python.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 27f260ce86..55f4f651ed 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9262,6 +9262,9 @@ with python-requests.") (home-page "https://github.com/sigmavirus24/requests-toolbelt") (license license:asl2.0))) +(define-public python2-requests-toolbelt + (package-with-python2 python-requests-toolbelt)) + (define-public python-click-threading (package (name "python-click-threading") -- cgit v1.2.3 From 9bb7c05e3db1adca51f9441c725e34599ba8e44c Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Sat, 9 Sep 2017 04:37:22 +0200 Subject: gnu: python-tox: Update to 2.8.1. * gnu/packages/python.scm (python-tox): Update to 2.8.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 55f4f651ed..94aca8fdce 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9925,14 +9925,14 @@ Pytest but stripped of Pytest specific details.") (define-public python-tox (package (name "python-tox") - (version "2.8.0") + (version "2.8.1") (source (origin (method url-fetch) (uri (pypi-uri "tox" version)) (sha256 (base32 - "00lrql2cfzhb712v70inac6mrgdv8s8fmvz7qpggkk623hkm2pgc")))) + "1drp6mwm8wdypjym15ia8lwjxbhcksb9vzxg4ay5dh4ji57by2ny")))) (build-system python-build-system) (arguments ;; FIXME: Tests require pytest-timeout, which itself requires -- cgit v1.2.3 From 8e6ceb473753de3b17d51410d038bb6ad17decd1 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Sat, 9 Sep 2017 21:34:30 +0200 Subject: gnu: Add python-nose-timer. * gnu/packages/python.scm (python-nose-time, python2-nose-timer): New variables. --- 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 94aca8fdce..2a83da6e9d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -16323,3 +16323,31 @@ ignoring formatting changes.") (define-public python2-pydiff (package-with-python2 python-pydiff)) + +(define-public python-nose-timer + (package + (name "python-nose-timer") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "nose-timer" version)) + (patches + (search-patches + ;; This patch will not be needed in the next version. + ;; It is taken from the master branch. + "python-nose-timer-drop-ordereddict.patch")) + (sha256 + (base32 + "1s32ymsnby8lz2qk55ifj9zi50dqcg6swnj5cz2rmwxg2jsslsxp")))) + (build-system python-build-system) + (propagated-inputs + `(("python-nose" ,python-nose) + ("python-termcolor" ,python-termcolor))) + (home-page "https://github.com/mahmoudimus/nose-timer") + (synopsis "Timer plugin for nosetests") + (description "Shows how much time was needed to run individual tests.") + (license license:expat))) + +(define-public python2-nose-timer + (package-with-python2 python-nose-timer)) -- cgit v1.2.3 From cf47e34e62ef7547f3596cb652eef2fef7b7a1d2 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Sun, 10 Sep 2017 01:20:57 +0200 Subject: gnu: Update the propagated inputs of python-urllib3. * gnu/packages/python.scm (python-urllib3, python2-urllib3): Update propagated inputs. --- 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 2a83da6e9d..755fd59294 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9839,10 +9839,11 @@ concurrent.futures package from Python 3.2") ("python-mock" ,python-mock) ("python-tornado" ,python-tornado))) (propagated-inputs - `(;; extra packages for https security + `(;; These 5 inputs are used to build urrlib3[secure] ("python-certifi" ,python-certifi) - ("python-ndg-httpsclient" ,python-ndg-httpsclient) - ("python-pyasn1" ,python-pyasn1) + ("python-cryptography" ,python-cryptography) ; + ("python-idna" ,python-idna) + ("python-ipaddress" ,python-ipaddress) ("python-pyopenssl" ,python-pyopenssl))) (home-page "https://urllib3.readthedocs.org/") (synopsis "HTTP library with thread-safe connection pooling") -- cgit v1.2.3 From b84ef9e2246024ca0fbec34d0fb0cc39901f674f Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Sun, 10 Sep 2017 02:13:05 +0200 Subject: gnu: Add python-tqdm. * gnu/packages/python.scm (python-tqdm, python2-tqdm): New variables. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 755fd59294..98fa998042 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -16352,3 +16352,32 @@ ignoring formatting changes.") (define-public python2-nose-timer (package-with-python2 python-nose-timer)) + +(define-public python-tqdm + (package + (name "python-tqdm") + (version "4.15.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "tqdm" version)) + (sha256 + (base32 + "0lwrmby8qz23gvqwkpivfrv4q8nfh90cz9ml6slwvwmcxxsdrhbf")))) + (build-system python-build-system) + (native-inputs + `(("python-flake8" ,python-flake8) + ("python-nose" ,python-nose) + ("python-nose-timer" ,python-nose-timer) + ("python-coverage" ,python-coverage) + ("python-virtualenv" ,python-virtualenv))) + (home-page "https://github.com/tqdm/tqdm") + (synopsis "Fast, extensible progress meter") + (description + "Make loops show a progress bar on the console by just wrapping any +iterable with @code{|tqdm(iterable)|}. Offers many options to define +design and layout.") + (license (list license:mpl2.0 license:expat)))) + +(define-public python2-tqdm + (package-with-python2 python-tqdm)) -- cgit v1.2.3 From 78f46e65bd1433009bd974b9d150e5675e5a7201 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Sun, 10 Sep 2017 02:47:15 +0200 Subject: gnu: Add python-pkginfo. * gnu/packages/python.scm (python-pkginfo, python2-pkginfo): New variables. --- 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 98fa998042..952af29052 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -16381,3 +16381,33 @@ design and layout.") (define-public python2-tqdm (package-with-python2 python-tqdm)) + +(define-public python-pkginfo + (package + (name "python-pkginfo") + (version "1.4.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pkginfo" version)) + (sha256 + (base32 + "17pqjfpq3c6xzdmk8pski6jcjgjv78q00zjf2bgzb668pzm6l6mv")))) + (build-system python-build-system) + (arguments + ;; The tests are broken upstream. + '(#:tests? #f)) + (home-page + "https://code.launchpad.net/~tseaver/pkginfo/trunk") + (synopsis + "Query metadatdata from sdists, bdists, and installed packages") + (description + "API to query the distutils metadata written in @file{PKG-INFO} inside a +source distriubtion (an sdist) or a binary distribution (e.g., created by +running bdist_egg). It can also query the EGG-INFO directory of an installed +distribution, and the *.egg-info stored in a \"development checkout\" (e.g, +created by running @code{python setup.py develop}).") + (license license:expat))) + +(define-public python2-pkginfo + (package-with-python2 python-pkginfo)) -- cgit v1.2.3 From 3ef85c1118e19a66d76f21de67beca6f93c920c3 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Sun, 10 Sep 2017 03:02:50 +0200 Subject: gnu: Add python-twine. * gnu/packages/python.scm (python-twine, python2-twine): New variables. --- 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 952af29052..6ffd468b3e 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -16411,3 +16411,31 @@ created by running @code{python setup.py develop}).") (define-public python2-pkginfo (package-with-python2 python-pkginfo)) + +(define-public python-twine + (package + (name "python-twine") + (version "1.9.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "twine" version)) + (sha256 + (base32 + "1ay1b6kdq6k4bfbjsvf6ymj41wrgpvinhxndb09355pwhxwmp96a")))) + (build-system python-build-system) + (propagated-inputs + `(("python-tqdm" ,python-tqdm) + ("python-pkginfo", python-pkginfo) + ("python-requests" ,python-requests) + ("python-requests-toolbelt" ,python-requests-toolbelt))) + (home-page "https://github.com/pypa/twine") + (synopsis "Collection of utilities for interacting with PyPI") + (description + "@code{twine} currently supports registering projects and uploading +distributions. It authenticates the user over HTTPS, allows them to pre-sign +their files and supports any packaging format (including wheels).") + (license license:asl2.0))) + +(define-public python2-twine + (package-with-python2 python-twine)) -- cgit v1.2.3 From 7e2c67ca6ab0107484bd6820768d7af48b3e2709 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 3 Oct 2017 16:35:59 -0400 Subject: gnu: awscli: Update to 1.11.164. * gnu/packages/python.scm (awscli): Update to 1.11.164. --- 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 6ffd468b3e..c0173c51fe 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10020,14 +10020,14 @@ interface to the Amazon Web Services (AWS) API.") (define-public awscli (package (name "awscli") - (version "1.11.151") + (version "1.11.164") (source (origin (method url-fetch) (uri (pypi-uri name version)) (sha256 (base32 - "0h6rirbfy0f9cxm7ikll0kr720dircfmxf2vslmhn4n325831wsp")))) + "05r8cw7i7ff6barpmyxxk3i52gzb1xyxwj8isynmiyqlmk3c9r8w")))) (build-system python-build-system) (propagated-inputs `(("python-colorama" ,python-colorama) -- cgit v1.2.3 From 1033cdbb0c27a75b77a05a97fbbe776060d5c6e7 Mon Sep 17 00:00:00 2001 From: Thomas Danckaert Date: Sun, 1 Oct 2017 14:32:04 +0200 Subject: gnu: python-numpy: Give sh store location instead of setting $SHELL. * gnu/packages/python.scm (python-numpy): [arguments] Don't set $SHELL in the environment, but embed the store location of bash-minimal as a default shell. Otherwise, we have to set $SHELL for every package which uses numpy's distutils. --- 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 c0173c51fe..bf451ab06d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3742,8 +3742,6 @@ between language specification and implementation aspects.") (modify-phases %standard-phases (add-before 'build 'set-environment-variables (lambda* (#:key inputs #:allow-other-keys) - ;; numpy's distutils uses $SHELL to run external commands. - (setenv "SHELL" "bash") (call-with-output-file "site.cfg" (lambda (port) (format port @@ -3762,6 +3760,11 @@ include_dirs = ~a/include (assoc-ref inputs "openblas") (assoc-ref inputs "lapack") (assoc-ref inputs "lapack")))) + ;; Make /gnu/store/...-bash-.../bin/sh the default shell, instead of + ;; /bin/sh. + (substitute* "numpy/distutils/exec_command.py" + (("(os.environ.get\\('SHELL', ')(/bin/sh'\\))" match match-start match-end) + (string-append match-start (assoc-ref inputs "bash") match-end))) ;; Use "gcc" executable, not "cc". (substitute* "numpy/distutils/system_info.py" (("c = distutils\\.ccompiler\\.new_compiler\\(\\)") -- cgit v1.2.3 From cb91edebdaef4d9512100ed5328b09a151d83d65 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 4 Oct 2017 14:36:50 +0200 Subject: gnu: python-numexpr: Update to 2.6.4. * gnu/packages/python.scm (python-numexpr): Update to 2.6.4. --- 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 bf451ab06d..5052b65022 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4142,14 +4142,14 @@ that client code uses to construct the grammar directly in Python code.") (define-public python-numexpr (package (name "python-numexpr") - (version "2.6.1") + (version "2.6.4") (source (origin (method url-fetch) (uri (pypi-uri "numexpr" version)) (sha256 (base32 - "01lsja72m32z0i5p8rwxbfyzk4mplh72k2a140nwh8vv4wpyfbnv")))) + "1kpnbb5d5n927113zccfibn16z7gidjipyac6kbbhzs0lnizkgph")))) (build-system python-build-system) (arguments `(#:tests? #f)) ; no tests included (propagated-inputs -- cgit v1.2.3