From c0e510dfa30fd0ba7d5b0d7c1d096afa6cf37cc6 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 8 Jun 2023 10:42:05 +0200 Subject: gnu: Add python-portalocker. * gnu/packages/python-xyz.scm (python-portalocker): 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 98abf038a5b..dd35f94214e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3906,6 +3906,28 @@ a certain expected condition.") Cython for speed.") (license license:expat))) +(define-public python-portalocker + (package + (name "python-portalocker") + (version "2.7.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "portalocker" version)) + (sha256 + (base32 + "0lawjm736vs86wlnxc3qqh37l11z0yx81xq3dmrw33m86kaq2bh3")))) + (build-system pyproject-build-system) + (native-inputs (list python-pytest + python-pytest-cov + python-pytest-mypy + python-pytest-timeout + python-redis)) + (home-page "https://github.com/WoLpH/portalocker") + (synopsis "Python library for file locking") + (description "Portalocker is a library to provide an easy API to file +locking..") + (license license:bsd-3))) + (define-public python-poyo (package (name "python-poyo") -- cgit v1.3 From 259b2e99e7121f05011742955636ff2dd96bf0e8 Mon Sep 17 00:00:00 2001 From: jgart Date: Sun, 11 Jun 2023 19:01:44 -0500 Subject: gnu: python-titlecase: Update to 2.4. * gnu/packages/python-xyz.scm (python-titlecase): Update to 2.4. [native-inputs]: Remove python-nose. --- gnu/packages/python-xyz.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index dd35f94214e..d736e94a6b1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -27307,17 +27307,15 @@ an upload option to send your work back to the platform.") (define-public python-titlecase (package (name "python-titlecase") - (version "0.12.0") + (version "2.4") (source (origin (method url-fetch) (uri (pypi-uri "titlecase" version)) (sha256 (base32 - "0486i99wf8ssa7sgn81fn6fv6i4rhhq6n751bc740b3hzfbpmpl4")))) + "00h92jdpj108z4sb6dpayfblpax20698290jnbyi5z5iwk5974i6")))) (build-system python-build-system) - (native-inputs - (list python-nose)) (home-page "https://github.com/ppannuto/python-titlecase") (synopsis "Capitalize strings similar to book titles") (description -- cgit v1.3 From 3cc08bbdd960879e97ae5a9683ede3e630caf28e Mon Sep 17 00:00:00 2001 From: Ivan Vilata i Balaguer Date: Tue, 23 May 2023 09:49:29 +0200 Subject: gnu: python-py3status: Update to 3.50. This avoids "ImportError: cannot import name 'Iterable' from 'collections'" from py3status version < 3.25. * gnu/packages/python-xyz.scm (python-py3status): Update to 3.50. Signed-off-by: Christopher Baines --- 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 d736e94a6b1..497b06a1c51 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -137,6 +137,7 @@ ;;; Copyright © 2023 Bruno Victal ;;; Copyright © 2023 Kaelyn Takata ;;; Copyright © 2023 Dominik Delgado Steuter +;;; Copyright © 2023 Ivan Vilata-i-Balaguer ;;; ;;; This file is part of GNU Guix. ;;; @@ -17947,13 +17948,13 @@ to occurrences in strings and comments.") (define-public python-py3status (package (name "python-py3status") - (version "3.21") + (version "3.50") (source (origin (method url-fetch) (uri (pypi-uri "py3status" version)) (sha256 - (base32 "16z8zq83hxy48g6hh4xczbdz50qvxv9k1aahr4fqq7jis60cc262")))) + (base32 "0j2dx9lzpic15r8p0r0s3jmcskxpacahxl640b4864ldn5rlnh9d")))) (build-system python-build-system) (inputs (list file)) -- cgit v1.3 From e2f25b79cbcafe0df350caaa5180ca2d542ff72d Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Sat, 27 May 2023 18:21:40 +0000 Subject: gnu: python-absl-py: Update to 1.4.0. * gnu/packages/python-xyz.scm (python-absl-py): Update to 1.4.0. [arguments]: Remove 'patch-version-check phase. [propagated-inputs]: Remove python-six. Signed-off-by: Christopher Baines --- gnu/packages/python-xyz.scm | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 497b06a1c51..968a8e1be96 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25473,26 +25473,15 @@ RFC 8265 and RFC 8266.") (define-public python-absl-py (package (name "python-absl-py") - (version "0.6.1") + (version "1.4.0") (source (origin (method url-fetch) (uri (pypi-uri "absl-py" version)) (sha256 (base32 - "1mp9lk0b2qa37b7y6ak4lvf6ifw2ylyy6bkf9ik77md3j4xrwlc7")))) + "0ga3b0m8lfsv1m3260p83lhis52yvz3d42q8gip4gfj823849hnj")))) (build-system pyproject-build-system) - (arguments - (list - #:phases - '(modify-phases %standard-phases - (add-after 'unpack 'patch-version-check - (lambda _ - ;; Python 3.10 is indeed more recent than Python 3.4. - (substitute* "setup.py" - ((" or py_version\\[0\\] == '3'.*") ":"))))))) - (propagated-inputs - (list python-six)) (home-page "https://github.com/abseil/abseil-py") (synopsis "Abseil Python common libraries") (description -- cgit v1.3 From 7224a1ca6e181d98243bc77828dea23e582aa57e Mon Sep 17 00:00:00 2001 From: Navid Afkhami Date: Mon, 12 Jun 2023 16:35:35 +0200 Subject: gnu: Add python-mizani. * gnu/packages/python-xyz.scm (python-mizani): New variable. Signed-off-by: Ricardo Wurmus --- gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 968a8e1be96..f2d04a13074 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -4109,6 +4109,33 @@ accuracy scores for various music/audio information retrieval/signal processing tasks.") (license license:expat))) +(define-public python-mizani + (package + (name "python-mizani") + (version "0.9.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/has2k1/mizani") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "13aisfc98nvypb4mglpdphp2r627cjzpdriw4dhlx55f3b2m0dza")))) + (build-system pyproject-build-system) + (propagated-inputs + (list python-matplotlib python-numpy python-pandas python-scipy)) + (native-inputs + (list python-setuptools python-pytest python-pytest-cov tzdata)) + (home-page "https://github.com/has2k1/mizani") + (synopsis "Create data visualizations in Python") + (description + "Mizani is a Python package for creating data visualizations. It +provides functions and tools to help with the creation of visually appealing +and informative visualizations, including scales, transformations and color +palettes.") + (license license:bsd-3))) + (define-public python-pafy (package (name "python-pafy") -- cgit v1.3 From 0ce76141bfe52b7c65d6185d036b4eaad2a0f0a3 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 30 May 2023 20:58:40 +0100 Subject: gnu: Add python-parsley. * gnu/packages/python-xyz.scm (python-parsley): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f2d04a13074..8cacdd57964 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3829,6 +3829,39 @@ matplotlib plots or supply colors for a web application.") syntax.") (license license:x11))) +(define-public python-parsley + (package + (name "python-parsley") + (version "1.3") + (source (origin + ;; The source distributed on PyPI is outdated. + (method git-fetch) + (uri (git-reference + (url "https://github.com/pyga/parsley") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0550rw65ygqzbjc8a66hs355pzbx727kbn20dssdb6ls846gw2qs")))) + (build-system pyproject-build-system) + (arguments + (list + ;; XXX: Check why these 3 tests fail. + #:test-flags #~(list "-k" + (string-append "not test_sending_empty_netstring" + " and not test_sending_one_netstring" + " and not test_sending_two_netstrings")))) + (native-inputs (list python-pytest python-twisted)) + (home-page "https://launchpad.net/parsley") + (synopsis "Parsing and pattern matching Python library") + (description + "Parsley is a parsing library using PEG algorithm, so each expression in +the grammar rules works like a Python expression. In particular, alternatives +are evaluated in order, unlike table-driven parsers such as yacc, bison or PLY. +Parsley is an implementation of OMeta, an object-oriented pattern-matching +language.") + (license license:expat))) + (define-public python-polib (package (name "python-polib") -- cgit v1.3 From 071ee5856d00e22ea9e289e4a7cebe80a7871b06 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 14 Jun 2023 11:59:07 +0300 Subject: gnu: python-blosc: Build with packaged blosc. * gnu/packages/python-xyz.scm (python-blosc)[source]: Add snippet to remove bundled sources. [arguments]: Add a custom phase to set location of blosc. [inputs]: Add c-blosc. --- gnu/packages/python-xyz.scm | 14 ++++++++++++-- 1 file changed, 12 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 8cacdd57964..3be2d0dae51 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25237,13 +25237,23 @@ they use the same path.") (uri (pypi-uri "blosc" version)) (sha256 (base32 - "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw")))) + "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw")) + (snippet + #~(begin (use-modules (guix build utils)) + (delete-file-recursively "c-blosc"))))) (build-system python-build-system) ;; FIXME: all tests pass, but then this error is printed: ;; TypeError: calling returned None, not a test - (arguments '(#:tests? #f)) + (arguments + (list #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'find-blosc + (lambda* (#:key inputs #:allow-other-keys) + (setenv "BLOSC_DIR" #$(this-package-input "c-blosc"))))))) (propagated-inputs (list python-numpy)) + (inputs (list c-blosc)) (home-page "https://github.com/blosc/python-blosc") (synopsis "Python wrapper for the Blosc data compressor library") (description "Blosc is a high performance compressor optimized for binary -- cgit v1.3 From 3573c82747b2f3ec85cc8345146fa0d7f92cb76a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 14 Jun 2023 12:08:04 +0300 Subject: gnu: python-blosc: Update to 1.11.1. * gnu/packages/python-xyz.scm (python-blosc): Update to 1.11.1. [source]: Update snippet. [arguments]: Adjust custom 'find-blosc phase. [propagated-inputs]: Add python-scikit-build. --- gnu/packages/python-xyz.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3be2d0dae51..86665b0af40 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25230,17 +25230,17 @@ they use the same path.") (define-public python-blosc (package (name "python-blosc") - (version "1.5.1") + (version "1.11.1") (source (origin (method url-fetch) (uri (pypi-uri "blosc" version)) (sha256 (base32 - "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw")) + "0xmjs28sgpnb940zrhw010dq2m9d8a5h4fgnjyk6645fgfr1j8f2")) (snippet #~(begin (use-modules (guix build utils)) - (delete-file-recursively "c-blosc"))))) + (delete-file-recursively "blosc/c-blosc"))))) (build-system python-build-system) ;; FIXME: all tests pass, but then this error is printed: ;; TypeError: calling returned None, not a test @@ -25250,9 +25250,10 @@ they use the same path.") #~(modify-phases %standard-phases (add-after 'unpack 'find-blosc (lambda* (#:key inputs #:allow-other-keys) - (setenv "BLOSC_DIR" #$(this-package-input "c-blosc"))))))) + (setenv "USE_SYSTEM_BLOSC" "1") + (setenv "Blosc_ROOT" #$(this-package-input "c-blosc"))))))) (propagated-inputs - (list python-numpy)) + (list python-scikit-build python-numpy)) (inputs (list c-blosc)) (home-page "https://github.com/blosc/python-blosc") (synopsis "Python wrapper for the Blosc data compressor library") -- cgit v1.3 From 9edf093e58a9ebbf5e4c6cdc874fcbcdbdca635d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 14 Jun 2023 12:09:25 +0300 Subject: gnu: python-blosc: Enable tests. * gnu/packages/python-xyz.scm (python-blosc)[arguments]: Don't disable tests. Add custom 'check phase. [native-inputs]: Add cmake-minimal. --- gnu/packages/python-xyz.scm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 86665b0af40..65d9742f2d9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25242,19 +25242,21 @@ they use the same path.") #~(begin (use-modules (guix build utils)) (delete-file-recursively "blosc/c-blosc"))))) (build-system python-build-system) - ;; FIXME: all tests pass, but then this error is printed: - ;; TypeError: calling returned None, not a test (arguments - (list #:tests? #f - #:phases + (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'find-blosc (lambda* (#:key inputs #:allow-other-keys) (setenv "USE_SYSTEM_BLOSC" "1") - (setenv "Blosc_ROOT" #$(this-package-input "c-blosc"))))))) + (setenv "Blosc_ROOT" #$(this-package-input "c-blosc")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "blosc.test"))))))) (propagated-inputs (list python-scikit-build python-numpy)) (inputs (list c-blosc)) + (native-inputs (list cmake-minimal)) (home-page "https://github.com/blosc/python-blosc") (synopsis "Python wrapper for the Blosc data compressor library") (description "Blosc is a high performance compressor optimized for binary -- cgit v1.3 From 706bf5f0c26c20eda69c9808c7b52c4d8a3e45d4 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 13 Jun 2023 14:38:09 +0200 Subject: gnu: python-shapely: Update to 2.0.1. * gnu/packages/python-xyz.scm (python-shapely): Update to 2.0.1. [arguments]: Remove 'patch-geos-path build phase; add 'build-extensions phase. [build-system]: Use pyproject-build-system. --- gnu/packages/python-xyz.scm | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 65d9742f2d9..eab3020323d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1716,14 +1716,22 @@ attacks or network discovery.") (define-public python-shapely (package (name "python-shapely") - (version "1.8.4") + (version "2.0.1") (source (origin (method url-fetch) - (uri (pypi-uri "Shapely" version)) + (uri (pypi-uri "shapely" version)) (sha256 - (base32 "130rqd0czi128wm5pdn47v4m6czxd7pkzanbya8q48gsm8ffb5d1")))) - (build-system python-build-system) + (base32 "14v88k0y7qhp8n5clip6w96pkdzrfqa2hsjkhpy9gkifwyiv39k6")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + '(modify-phases %standard-phases + (add-before 'check 'build-extensions + (lambda _ + ;; Cython extensions have to be built before running the tests. + (invoke "python" "setup.py" "build_ext" "--inplace")))))) (native-inputs (list python-cython python-matplotlib python-pytest python-pytest-cov)) @@ -1731,25 +1739,6 @@ attacks or network discovery.") (list geos)) (propagated-inputs (list python-numpy)) - (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-geos-path - (lambda* (#:key inputs #:allow-other-keys) - (let ((geos (assoc-ref inputs "geos")) - (glibc (assoc-ref inputs ,(if (%current-target-system) - "cross-libc" "libc")))) - (substitute* '("shapely/geos.py" "shapely/_buildcfg.py") - (("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)") - (string-append "_lgeos = load_dll('geos_c', fallbacks=['" - geos "/lib/libgeos_c.so'])")) - (("free = load_dll\\('c'\\)\\.free") - (string-append "free = load_dll('c', fallbacks=['" - glibc "/lib/libc.so.6']).free")) - (("free = load_dll\\('c', fallbacks=.*\\)\\.free") - (string-append "free = load_dll('c', fallbacks=['" - glibc "/lib/libc.so.6']).free")))) - #t))))) (home-page "https://github.com/Toblerity/Shapely") (synopsis "Library for the manipulation and analysis of geometric objects") (description "Shapely is a Python package for manipulation and analysis of -- cgit v1.3 From 6bbfcc359a111c257d4a9ea788027baddf4e7d64 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 13 Jun 2023 23:24:51 -0400 Subject: gnu: python-scikit-build: Update to 0.17.6. * gnu/packages/python-xyz.scm (python-scikit-build): Update to 0.17.6. [arguments]: Re-instate test_cxx_compiler test in check phase. [native-inputs]: Add python-virtualenv. --- gnu/packages/python-xyz.scm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index eab3020323d..afd3100a6b0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29794,13 +29794,13 @@ and frame grabber interface.") (define-public python-scikit-build (package (name "python-scikit-build") - (version "0.17.1") + (version "0.17.6") (source (origin (method url-fetch) (uri (pypi-uri "scikit_build" version)) (sha256 - (base32 "0v1qcn3nsjxqdl6fa07b7acq6xndqbvvic5dvsgbjgldkjr1drqp")))) + (base32 "17awdvpzj4bn50gk4gmj20r2xcjr5y8lfl2bk582di1pdfim26mm")))) (build-system pyproject-build-system) (arguments (list @@ -29839,11 +29839,7 @@ and frame grabber interface.") ;; nondeterministically (see: ;; https://github.com/scikit-build/scikit-build/issues/711). "and not test_generator_cleanup " - "and not test_generator_selection " - ;; The compiler test fails with a - ;; SKBuildGeneratorNotFoundError error (see: - ;; https://github.com/scikit-build/scikit-build/issues/945). - "and not test_cxx_compiler ")))))))) + "and not test_generator_selection ")))))))) (native-inputs (list cmake-minimal gfortran @@ -29863,7 +29859,8 @@ and frame grabber interface.") python-pytest-virtualenv python-pytest-xdist python-requests - python-setuptools-scm)) + python-setuptools-scm + python-virtualenv)) (propagated-inputs (list python-distro python-packaging python-tomli python-wheel)) (home-page "https://github.com/scikit-build/scikit-build") -- cgit v1.3 From ee7b06e2124337e4bfd253f1678615c6790df8bf Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 14 Jun 2023 12:38:01 -0400 Subject: gnu: python-pyzmq: Use pytest to run the test suite. * gnu/packages/python-xyz.scm (python-pyzmq) [arguments]: Precise comments regarding #:tests?. Override check phase. --- gnu/packages/python-xyz.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index afd3100a6b0..2bb0dc5a70c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11847,16 +11847,19 @@ applications.") ;; FIXME: The test_draft.TestDraftSockets test fails with: ;; zmq.error.Again: Resource temporarily unavailable (delete-file "zmq/tests/test_draft.py") - ;; These tests fail for unknown reasons (see: + ;; These tests appear to depend on a working name resolver (see: ;; https://github.com/zeromq/pyzmq/issues/1853). (delete-file "zmq/tests/test_auth.py") (delete-file "zmq/tests/test_zmqstream.py"))) (add-before 'check 'build-extensions (lambda _ ;; Cython extensions have to be built before running the tests. - (invoke "python" "setup.py" "build_ext" "--inplace")))))) - (inputs - (list zeromq)) + (invoke "python" "setup.py" "build_ext" "--inplace"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) + (inputs (list zeromq)) (native-inputs (list pkg-config python-cython -- cgit v1.3 From 786d8fd60d33ec57689038f08092d134dbeb4be7 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 14 Jun 2023 12:42:40 -0400 Subject: gnu: python-pyzmq: Update to 25.1.0. * gnu/packages/python-xyz.scm (python-pyzmq): Update to 25.1.0. --- 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 2bb0dc5a70c..141fa1d05be 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11812,13 +11812,13 @@ applications.") (define-public python-pyzmq (package (name "python-pyzmq") - (version "25.0.2") + (version "25.1.0") (source (origin (method url-fetch) (uri (pypi-uri "pyzmq" version)) (sha256 - (base32 "0jai5sbd4ypihsvr4ikq6d93nkmxwv53598sh24dqs78f2xip33b")) + (base32 "0mw9zf0h9sgn2cchw24vyxgyi2nfpyfacr0mh072hdjx8qii1i40")) (snippet #~(begin (use-modules (guix build utils)) -- cgit v1.3 From 31336e9f5d68512a9c1c6826bce9f17c892a2125 Mon Sep 17 00:00:00 2001 From: Ontje Lünsdorf Date: Wed, 22 Mar 2023 09:42:09 +0100 Subject: gnu: Add python-pdoc. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-xyz.scm (python-pdoc): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 141fa1d05be..cdffc3ad67b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -138,6 +138,7 @@ ;;; Copyright © 2023 Kaelyn Takata ;;; Copyright © 2023 Dominik Delgado Steuter ;;; Copyright © 2023 Ivan Vilata-i-Balaguer +;;; Copyright © 2023 Ontje Lünsdorf ;;; ;;; This file is part of GNU Guix. ;;; @@ -1065,6 +1066,38 @@ MySQL databases, using an API that is compliant with the Python Database API Specification v2.0 (PEP 249).") (license license:gpl2))) +(define-public python-pdoc + (package + (name "python-pdoc") + (version "13.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mitmproxy/pdoc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0gxkw607nrd67ck4w8jri9vfrm5g60qvp8b134m8zkiphbxjnx0l")))) + (build-system pyproject-build-system) + (native-inputs (list python-pytest python-jinja2 python-pygments)) + (arguments + (list + ;; Some tests fail, presumably because of slight version mismatches of + ;; the dependencies. + #:test-flags + '(list "-k" (string-append "not test_var_with_raising_repr and " + "not test_smoke[mock] and " + "not test_snapshots[html")))) + (home-page "https://pdoc.dev/") + (synopsis "API documentation for Python projects") + (description "pdoc auto-generates API documentation that follows your +project's Python module hierarchy. It requires no configuration, has +first-class support for type annotations, cross-links between identifiers, +comes with an integrated live-reloading web server, uses customizable HTML +templates, understands numpydoc and Google-style docstrings.") + (license license:unlicense))) + (define-public python-py4j (package (name "python-py4j") -- cgit v1.3 From 58949b72ce34cab833d95ff0f1b8799803564834 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 15 Jun 2023 08:36:12 -0400 Subject: gnu: python-pyzmq: Reinstate two tests. * gnu/packages/python-xyz.scm (python-pyzmq) [arguments]: Reinstate the test_auth and test_zmqstream tests, fixed in the last 25.1.0 version. --- gnu/packages/python-xyz.scm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index cdffc3ad67b..81d3ec5d952 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11879,11 +11879,7 @@ applications.") (lambda _ ;; FIXME: The test_draft.TestDraftSockets test fails with: ;; zmq.error.Again: Resource temporarily unavailable - (delete-file "zmq/tests/test_draft.py") - ;; These tests appear to depend on a working name resolver (see: - ;; https://github.com/zeromq/pyzmq/issues/1853). - (delete-file "zmq/tests/test_auth.py") - (delete-file "zmq/tests/test_zmqstream.py"))) + (delete-file "zmq/tests/test_draft.py"))) (add-before 'check 'build-extensions (lambda _ ;; Cython extensions have to be built before running the tests. -- cgit v1.3 From 17dcdbc490ef637cbf26d2ff70edfc56fb06c69c Mon Sep 17 00:00:00 2001 From: Andy Tai Date: Fri, 28 Apr 2023 23:15:34 -0700 Subject: gnu: python-cython-next: Update to 3.0.0b2. * gnu/packages/python-xyz.scm (python-cython-next): Update to 3.0.0b2. Signed-off-by: Christopher Baines --- 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 81d3ec5d952..af9dd45d6ec 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6916,13 +6916,13 @@ writing C extensions for Python as easy as Python itself.") ;; Cython 3 is not officially released yet, so distinguish the name ;; for now. (name "python-cython-next") - (version "3.0.0a10") + (version "3.0.0b2") (source (origin (method url-fetch) (uri (pypi-uri "Cython" version)) (sha256 (base32 - "17fqacrpis05w1rpi7d7sbimrk20xf8h6d3vrz5nf6ix3899abil")))) + "0mb7gpavs87am29sbk6yqznsybxj9dk4fwj4370j9sbrcmjq0hkc")))) (properties '()))) ;; NOTE: when upgrading numpy please make sure that python-numba, -- cgit v1.3 From 6a91d4b8e070ef148f36218e5e822c02cc66d228 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 20 Jun 2023 23:39:57 +0200 Subject: gnu: python-dask: Add missing input. * gnu/packages/python-xyz.scm (python-dask)[propagated-inputs]: Add python-import-metadata. --- gnu/packages/python-xyz.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index af9dd45d6ec..b650b71f3bb 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25423,6 +25423,7 @@ parentdir_prefix = dask- (propagated-inputs (list python-cloudpickle python-fsspec + python-importlib-metadata ;needed at runtime for dask/_compatibility.py python-numpy python-packaging python-pandas -- cgit v1.3