From e308b4f06a06c38954b1c07c6a83622bb01a0326 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Thu, 11 Jul 2019 15:43:31 -0500 Subject: gnu: Add python-cached-property. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-xyz.scm (python-cached-property): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 29aebdf8aa..b078786e13 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -63,6 +63,7 @@ ;;; Copyright © 2019 Guillaume Le Vaillant ;;; Copyright © 2019 Alex Griffin ;;; Copyright © 2019 Pierre Langlois +;;; Copyright © 2019 Jacob MacDonald ;;; ;;; This file is part of GNU Guix. ;;; @@ -15954,3 +15955,39 @@ Complete support for Berkeley DB Base Replication. Support for RPC.") types for further processing. It is primarily intended for batch jobs and one-off scripts.") (license license:expat))) + +(define-public python-cached-property + (package + (name "python-cached-property") + (version "1.5.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cached-property" version)) + (sha256 + (base32 + "010m1bl380l2r3vwq24r5v14l6gwvgm9v0mqqjkjss552jgsa5wj")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; https://github.com/pydanny/cached-property/issues/131 + ;; recent versions of freezegun break one test + (add-after 'unpack 'disable-broken-test + (lambda _ + (substitute* "tests/test_cached_property.py" + (("def test_threads_ttl_expiry\\(self\\)" m) + (string-append "@unittest.skip(\"Disabled by Guix\")\n" + " " m))) + #t))))) + (native-inputs + `(("python-freezegun" ,python-freezegun))) + (home-page + "https://github.com/pydanny/cached-property") + (synopsis + "Decorator for caching properties in classes") + (description + "This package provides a decorator which makes caching +time-or-computationally-expensive properties quick and easy and works in Python +2 or 3.") + (license license:bsd-3))) -- cgit v1.2.3 From a76e6a690f290084ff9bf08df416d84463018e3c Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Thu, 11 Jul 2019 15:42:37 -0500 Subject: gnu: Add python-idna-2.7. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-xyz.scm (python-idna-2.7): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-xyz.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b078786e13..caa3ba2f75 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7233,6 +7233,17 @@ the Python standard library but currently only supports the older 2003 specification.") (license license:bsd-4))) +(define-public python-idna-2.7 + (package (inherit python-idna) + (version "2.7") + (source (origin + (method url-fetch) + (uri (pypi-uri "idna" version)) + (sha256 + (base32 + "05jam7d31767dr12x0rbvvs8lxnpb1mhdb2zdlfxgh83z6k3hjk8")))))) + + (define-public python2-idna (package-with-python2 python-idna)) -- cgit v1.2.3 From 52cc489292ec1fc821911bb042aa07950658d3aa Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Thu, 11 Jul 2019 15:43:03 -0500 Subject: gnu: python-texttable: Update to 0.9.1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-xyz.scm (python-texttable): Update to 0.9.1. Signed-off-by: Ludovic Courtès --- gnu/packages/python-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index caa3ba2f75..3aff94e359 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8150,14 +8150,14 @@ the standard library.") (define-public python-texttable (package (name "python-texttable") - (version "0.8.7") + (version "0.9.1") (source (origin (method url-fetch) (uri (pypi-uri "texttable" version)) (sha256 (base32 - "1liiiydgkg37i46a418aw19fyf6z3ds51wdwwpyjbs12x0phhf4a")))) + "0yawv64c0zbawwv6zz84whb32fnb2n9jylwjcfsrcdgh7xvl340i")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; no tests (home-page "https://github.com/foutaise/texttable/") -- cgit v1.2.3 From d71d85cd17ea86d902f6d8109e43134138640a90 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 15 Jul 2019 12:13:34 +0200 Subject: gnu: Add python-progressbar33. * gnu/packages/python-xyz.scm (python-progressbar33): New variable. --- gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3aff94e359..eda21d8c64 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8538,6 +8538,28 @@ concurrent.futures package from Python 3.2") ("python2-pytest" ,python2-pytest) ,@(package-native-inputs promise)))))) +(define-public python-progressbar33 + (package + (name "python-progressbar33") + (version "2.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "progressbar33" version)) + (sha256 + (base32 + "1zvf6zs5hzrc03p9nfs4p16vhilqikycvv1yk0pxn8s07fdhvzji")))) + (build-system python-build-system) + (home-page "http://github.com/germangh/python-progressbar") + (synopsis "Text progress bar library for Python") + (description + "This package provides a text progress bar library for Python. This +version only differs from the original @code{progressbar} package in that it +uses relative package imports instead of absolute imports, which is necessary +for the module to work under Python 3.3.") + ;; Either or both of these licenses may be selected. + (license (list license:lgpl2.1+ license:bsd-3)))) + (define-public python-colorama (package (name "python-colorama") -- cgit v1.2.3 From 34c2a16b107362dae35dfb722547639365198e24 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 16 Jul 2019 17:00:08 +0200 Subject: gnu: python-matplotlib: Do not propagate GTK+ or python-pyqt. * gnu/packages/python-xyz.scm (python-matplotlib)[propagated-inputs]: Remove gtk+ and python-pyqt. [arguments]: Adjust configure-environment phase. --- gnu/packages/python-xyz.scm | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index eda21d8c64..e65b6a1fa8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3809,22 +3809,11 @@ convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc. ("python-pillow" ,python-pillow) ("python-pytz" ,python-pytz) ("python-six" ,python-six) - ;; The 'gtk+' package (and 'gdk-pixbuf', 'atk' and 'pango' propagated - ;; from 'gtk+') provides the required 'typelib' files used by - ;; 'gobject-introspection'. The location of these files is set with the - ;; help of the environment variable GI_TYPELIB_PATH. At build time this - ;; is done automatically by a 'native-search-path' procedure. However, - ;; at run-time the user must set this variable as follows: - ;; - ;; export GI_TYPELIB_PATH=~/.guix-profile/lib/girepository-1.0 - ("gtk+" ,gtk+) ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context' ;; object. For this reason we need to import both libraries. ;; https://pythonhosted.org/cairocffi/cffi_api.html#converting-pycairo ("python-pycairo" ,python-pycairo) - ;; XXX: qtwebkit cannot be built reliably. - ("python-pyqt" ,python-pyqt-without-qtwebkit) ("python-cairocffi" ,python-cairocffi))) (inputs `(("libpng" ,libpng) @@ -3845,12 +3834,10 @@ convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc. (modify-phases %standard-phases (add-before 'build 'configure-environment (lambda* (#:key outputs inputs #:allow-other-keys) - (let ((cairo (assoc-ref inputs "cairo")) - (gtk+ (assoc-ref inputs "gtk+"))) - ;; Setting these directories in the 'basedirlist' of 'setup.cfg' + (let ((cairo (assoc-ref inputs "cairo"))) + ;; Setting this directory in the 'basedirlist' of 'setup.cfg' ;; has not effect. - (setenv "LD_LIBRARY_PATH" - (string-append cairo "/lib:" gtk+ "/lib")) + (setenv "LD_LIBRARY_PATH" (string-append cairo "/lib")) (setenv "HOME" (getcwd)) (call-with-output-file "setup.cfg" (lambda (port) -- cgit v1.2.3 From fe9c5b1dadbea513c4556a7e6bae48736b693568 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Wed, 17 Jul 2019 11:52:40 +0200 Subject: gnu: python-swagger-spec-validator: Update to 2.4.3. * gnu/packages/python-xyz.scm (python-swagger-spec-validator): Update to 2.4.3. [native-inputs]: Add python-pyyaml. --- gnu/packages/python-xyz.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e65b6a1fa8..5a89243dbc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13121,17 +13121,18 @@ from your Flask project. It is a fork of Flask-Swagger.") (define-public python-swagger-spec-validator (package (name "python-swagger-spec-validator") - (version "2.1.0") + (version "2.4.3") (source (origin (method url-fetch) (uri (pypi-uri "swagger-spec-validator" version)) (sha256 (base32 - "13hkpn2lycwr0468yqhjb3kwszqf7hjwlq61w7vdxq1caz31k4nw")))) + "11g627icrsqwazsncwi0sdvprcj6hwaayw5xk3xsj8d97bmrzqjp")))) (build-system python-build-system) (propagated-inputs `(("python-jsonschema" ,python-jsonschema) + ("python-pyyaml" ,python-pyyaml) ("python-six" ,python-six))) (home-page "https://github.com/Yelp/swagger_spec_validator") -- cgit v1.2.3 From aa856d02b8018eab059d5a337f613692ac5d93fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 16 Jul 2019 23:25:18 +0200 Subject: gnu: python-ipykernel: Record absolute file name of 'python'. * gnu/packages/python-xyz.scm (python-ipykernel)[arguments]: Add 'set-python-file-name' phase. --- gnu/packages/python-xyz.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5a89243dbc..9de8203264 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5157,7 +5157,17 @@ installing @code{kernelspec}s for use with Jupyter frontends.") (lambda _ (setenv "HOME" "/tmp") (invoke "pytest" "-v") - #t))))) + #t)) + (add-after 'install 'set-python-file-name + (lambda* (#:key outputs #:allow-other-keys) + ;; Record the absolute file name of the 'python' executable in + ;; 'kernel.json'. + (let ((out (assoc-ref outputs "out"))) + (substitute* (string-append out "/share/jupyter" + "/kernels/python3/kernel.json") + (("\"python\"") + (string-append "\"" (which "python") "\""))) + #t)))))) (propagated-inputs `(("python-ipython" ,python-ipython) ;; imported at runtime during connect -- cgit v1.2.3