summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm167
1 files changed, 73 insertions, 94 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dcade0a579..82eb42dffa 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3088,6 +3088,7 @@ and is not compatible with JSON.")
(build-system python-build-system)
(arguments
(list
+ #:tests? #f ;TODO: Circular dependency on pytest
#:phases
#~(modify-phases %standard-phases
;; XXX: PEP 517 manual build/install procedures copied from
@@ -3107,7 +3108,7 @@ and is not compatible with JSON.")
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "tests")))))))
- (native-inputs (list python-flit-scm python-pypa-build python-pytest))
+ (native-inputs (list python-flit-scm python-pypa-build))
(home-page "https://github.com/agronholm/exceptiongroup")
(synopsis "PEP 654 backport from Python 3.11")
(description "This is a backport of the @code{BaseExceptionGroup} and
@@ -3270,14 +3271,14 @@ port forwards using @acronym{UPnP, Universal Plug and Play}.")
(define-public python-py
(package
(name "python-py")
- (version "1.10.0")
+ (version "1.11.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "py" version))
(sha256
(base32
- "1lqvkqk3b440g9z82gqbzlzas84wrm6ir8kplzhzavmn2pd1pf11"))))
+ "06c7m7sfcn7587xd4s2bng8m6q1gsfd3j93afhplfjq74r0mrisi"))))
(build-system python-build-system)
(arguments
;; FIXME: "ImportError: 'test' module incorrectly imported from
@@ -3974,14 +3975,14 @@ e.g. filters, callbacks and errbacks can all be promises.")
(define-public python-markupsafe
(package
(name "python-markupsafe")
- (version "2.0.1")
+ (version "2.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "MarkupSafe" version))
(sha256
(base32
- "02k2ynmqvvd0z0gakkf8s4idyb606r7zgga41jrkhqmigy06fk2r"))))
+ "0jqxp5sfrc0byp6bk0gwdmildi4mck2gprp42afri3z4r5y1k4bz"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
@@ -5613,7 +5614,7 @@ writing C extensions for Python as easy as Python itself.")
(define-public python-numpy
(package
(name "python-numpy")
- (version "1.21.6")
+ (version "1.23.2")
(source
(origin
(method url-fetch)
@@ -5622,7 +5623,7 @@ writing C extensions for Python as easy as Python itself.")
version "/numpy-" version ".tar.gz"))
(sha256
(base32
- "0b0c5y35rd3mvwfk5is1d5ppfw9nl4d2rgx9xkwh1p0w394wdvyl"))))
+ "00bx3idjwhmzkdawg2dx1bp0316ig37jfx0dm82bvyv1hbj013dp"))))
(build-system python-build-system)
(arguments
(list
@@ -5644,7 +5645,10 @@ writing C extensions for Python as easy as Python itself.")
[openblas]
libraries = openblas
library_dirs = ~a/lib
-include_dirs = ~:*~a/include~%" #$(this-package-input "openblas"))))))
+include_dirs = ~:*~a/include~%"
+ (dirname (dirname
+ (search-input-file
+ inputs "include/openblas_config.h"))))))))
(add-before 'build 'fix-executable-paths
(lambda* (#:key inputs #:allow-other-keys)
;; Make /gnu/store/...-bash-.../bin/sh the default shell,
@@ -5668,7 +5672,11 @@ include_dirs = ~:*~a/include~%" #$(this-package-input "openblas"))))))
;; These tests may fail on 32-bit systems (see:
;; https://github.com/numpy/numpy/issues/18387).
"not test_float_remainder_overflow "
- "and not test_pareto"
+ "and not test_pareto "
+ ;; The 'test_rint_big_int' test fails on older
+ ;; x86_64 CPUs such as the Core 2 Duo (see:
+ ;; https://github.com/numpy/numpy/issues/22170).
+ "and not test_rint_big_int "
;; These tests seem to fail on machines without
;; an FPU is still under investigation upstream.
;; https://github.com/numpy/numpy/issues/20635
@@ -5678,9 +5686,10 @@ include_dirs = ~:*~a/include~%" #$(this-package-input "openblas"))))))
'())))))))))
(native-inputs
(list python-cython
- python-hypothesis-next
+ python-hypothesis
python-pytest
python-pytest-xdist
+ python-typing-extensions
gfortran))
(inputs (list bash openblas))
(home-page "https://numpy.org")
@@ -5694,22 +5703,6 @@ capabilities.")
'((upstream-name . "numpy")))
(license license:bsd-3)))
-(define-public python-numpy-next
- (package
- (inherit python-numpy)
- (name "python-numpy-next")
- (version "1.22.3")
- (source
- (origin
- (inherit (package-source python-numpy))
- (method url-fetch)
- (uri (string-append
- "https://github.com/numpy/numpy/releases/download/v"
- version "/numpy-" version ".tar.gz"))
- (sha256
- (base32
- "19dw91pqbqcniw2z57kiyqs1qp56g7kqy1bdyv664g8s62sc01m9"))))))
-
(define-public python-numpy-documentation
(package
(inherit python-numpy)
@@ -6963,31 +6956,43 @@ by pycodestyle.")
(define-public python-distlib
(package
(name "python-distlib")
- (version "0.3.1")
+ (version "0.3.5")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "distlib" version ".zip"))
+ (uri (pypi-uri "distlib" version))
(sha256
(base32
- "1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))
+ "1zmjraasgqkz0gfv4mc4w4fj4k2fxj62h1pf5dgb5qqbqwvmgxx7"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'no-/bin/sh
- (lambda _
- (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
- (("/bin/sh") (which "sh")))
- #t))
- (add-before 'check 'prepare-test-env
- (lambda _
- (setenv "HOME" "/tmp")
- ;; NOTE: Any value works, the variable just has to be present.
- (setenv "SKIP_ONLINE" "1")
- #t)))))
- (native-inputs (list unzip))
- (home-page "https://bitbucket.org/pypa/distlib")
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ ;; ZIP does not support timestamps before 1980.
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (add-before 'build 'no-/bin/sh
+ (lambda _
+ (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
+ (("/bin/sh") (which "sh")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (setenv "HOME" "/tmp")
+ ;; NOTE: Any value works, the variable just has to be present.
+ (setenv "SKIP_ONLINE" "1")
+ (when tests?
+ (invoke "pytest" "-vv"))))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl)))))))
+ (native-inputs
+ (list python-pypa-build python-pytest))
+ (home-page "https://github.com/pypa/distlib")
(synopsis "Distribution utilities")
(description "Distlib is a library which implements low-level functions that
relate to packaging and distribution of Python software. It is intended to be
@@ -11304,13 +11309,13 @@ number of lines in the contained files easily.")
(hidden-package
(package
(name "python-fonttools")
- (version "4.28.5")
+ (version "4.37.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "fonttools" version ".zip"))
(sha256
(base32
- "1jhl5n3rfqq7fznvsh6r80n7ylap1a7ppq1040y8cflhyz80ap2l"))))
+ "1ryc1wca2v92wn24baryj5fr32lspl8rbsig32fnkxp1islf21j6"))))
(build-system python-build-system)
(native-inputs
(list unzip))
@@ -11363,18 +11368,6 @@ from an XML-based format.")
python-zopfli))
(properties (alist-delete 'hidden? (package-properties python-fonttools)))))
-(define-public python-fonttools-next
- (package
- (inherit python-fonttools-full)
- (version "4.32.0")
- (source (origin
- (inherit (package-source python-fonttools-full))
- (method url-fetch)
- (uri (pypi-uri "fonttools" version ".zip"))
- (sha256
- (base32
- "14nk43z0dmznypm3zp4sdc04x1y608jawlnmwdkk32a947khvaar"))))))
-
(define-public python-ly
(package
(name "python-ly")
@@ -13304,7 +13297,8 @@ time.")
(list python-ipykernel
;; Adding ipywidgets would create a cycle.
;;python-ipywidgets
- ;;python-pyppeteer ;TODO: package me
+ ;; XXX: Disabled, not in guix.
+ ;;python-pyppeteer
python-pytest
python-pytest-xdist))
(propagated-inputs
@@ -13330,14 +13324,14 @@ time.")
texlive-caption
texlive-enumitem
texlive-fontspec
- texlive-generic-iftex
+ texlive-iftex
texlive-grffile
texlive-hyperref
- texlive-latex-fancyvrb
+ texlive-fancyvrb
texlive-latex-float
texlive-latex-geometry
texlive-latex-jknapltx
- texlive-latex-ms
+ texlive-ms
texlive-latex-parskip
texlive-latex-trimspaces
texlive-latex-upquote
@@ -15056,27 +15050,27 @@ of @acronym{REGEXPs, regular expressions}.")
(define-public python-mako
(package
(name "python-mako")
- (version "1.1.3")
+ (version "1.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Mako" version))
(sha256
(base32
- "09ywrmhr6gdyfx6d5727wwjnz73i6rklqcb4c14m7sqc830wi5c1"))))
+ "01q3gdqpxqcxdhacrzrwk6fjpd1krdr73i7cm4d2yja38zzsam7h"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
- (invoke "nosetests" "-v")
+ (invoke "pytest" "-vv")
(format #t "test suite not run~%"))
#t)))))
(propagated-inputs
(list python-markupsafe))
(native-inputs
- (list python-mock python-nose))
+ (list python-mock python-pytest))
(home-page "https://www.makotemplates.org/")
(synopsis "Templating language for Python")
(description "Mako is a templating language for Python that compiles
@@ -15631,7 +15625,7 @@ way.")
(base32
"00yvj8bxmhhhhd74v7j0x673is7vizmxwgb3dd5xmnkr74ybyi7w"))))
(build-system python-build-system)
- (native-inputs (list python-pytest-6))
+ (native-inputs (list python-pytest))
(home-page "https://software.clapper.org/munkres/")
(synopsis "Implementation of the Munkres algorithm")
(description "The Munkres module provides an implementation of the Munkres
@@ -15930,9 +15924,7 @@ syntax highlighting, markdown and more to the terminal.")
(list which))
(inputs
;; python-magic needs to be able to find libmagic.so.
- ;; Use a newer version because 5.39 returns bogus for some archives
- ;; (notably Chromium .crx extensions), which breaks e.g. 'diffoscope'.
- (list file-next))
+ (list file))
(synopsis "File type identification using libmagic")
(description
"This module uses ctypes to access the libmagic file type
@@ -16859,7 +16851,7 @@ strings require only one extra byte in addition to the strings themselves.")
;; build system and new Rust dependencies.
"--ignore" "tests/test_preconf.py")))))))
(native-inputs
- (list python-hypothesis-next
+ (list python-hypothesis
python-immutables
python-msgpack
python-poetry-core
@@ -21659,26 +21651,19 @@ with PEP 484 argument (and return) type annotations.")
(define-public python-typing-extensions
(package
(name "python-typing-extensions")
- (version "4.0.1")
+ (version "4.3.0")
(source (origin
- ;; The test script is missing from the PyPI archive.
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/python/typing")
- (commit version)))
- (file-name (git-file-name name version))
+ (method url-fetch)
+ (uri (pypi-uri "typing_extensions" version))
(sha256
(base32
- "0a35fh5wk9s538x0w3dz95y0avnhd2srzyv9s1a372711n8hdl4p"))))
+ "19n4l57qazwrbvxjrbxw2vvfyd0zbk8ivnwm4zmwfzzl69x6glp6"))))
(build-system python-build-system)
(arguments
(list
#:tests? #f ;requires Python's test module, not available in Guix
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'enter-source-directory
- (lambda _
- (chdir "typing_extensions")))
;; XXX: PEP 517 manual build copied from python-isort.
(replace 'build
(lambda _
@@ -23083,25 +23068,19 @@ that is accessible to other projects developed in Cython.")
(define-public python-sortedcontainers
(package
(name "python-sortedcontainers")
- (version "2.1.0")
+ (version "2.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sortedcontainers" version))
(sha256
(base32
- "0fm0w5id2yhqld95hg2m636vjgkz377rvgdfqaxc25vbylr9lklp"))))
+ "126vpywl7aly6zir033a9indgyficlzl68qls61nn2y3djhabji5"))))
(build-system python-build-system)
(arguments
- ;; FIXME: Tests require many extra dependencies, and would introduce
- ;; a circular dependency on hypothesis, which uses this package.
+ ;; TODO: Circular dependency on pytest.
'(#:tests? #f))
- (propagated-inputs
- `(("python-appdirs" ,python-appdirs)
- ("python-distlib" ,python-distlib)
- ("python-filelock" ,python-filelock)
- ("python-six" ,python-six-bootstrap)))
- (home-page "http://www.grantjenks.com/docs/sortedcontainers/")
+ (home-page "https://grantjenks.com/docs/sortedcontainers/")
(synopsis "Sorted List, Sorted Dict, Sorted Set")
(description
"This package provides a sorted collections library, written in
@@ -26804,7 +26783,7 @@ By default it uses the open Python vulnerability database Safety DB.")
(native-inputs
`(("texlive" ,(texlive-updmap.cfg (list texlive-amsfonts
texlive-fonts-ec
- texlive-generic-iftex
+ texlive-iftex
texlive-hyperref
texlive-oberdiek
texlive-lm
@@ -28249,7 +28228,7 @@ symbolic expressions in pure Python using the technique of logical unification."
"0w9giq196wps7mbm47c4shdzs5yvwvqajqzkim2p92i51sm5qgvm"))))
(build-system python-build-system)
(native-inputs
- (list python-pytest-6 python-toml))
+ (list python-pytest python-toml))
(propagated-inputs
(list python-logical-unification))
(home-page "https://github.com/pythological/python-cons")