diff options
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 393 |
1 files changed, 163 insertions, 230 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e7b3b98c96..d71d26b15f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -1010,6 +1010,36 @@ new type and helper functions to integrate it nicely with the Python stdlib.") (license license:expat))) +(define-public python-session-info2 + (package + (name "python-session-info2") + (version "0.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "session_info2" version)) + (sha256 + (base32 "0xs1mcdz0hf626m3421ryv4f7b5rixz2hm8x88czx2i9196x69g9")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "--deselect=tests/test_synthetic.py::test_gpu" + ;; Tests require Jupyter Client. + "--ignore=tests/test_subprocess.py"))) + (native-inputs + (list python-hatch-docstring-description + python-hatch-vcs + python-hatchling + python-pytest + python-pytest-asyncio)) + (home-page "https://session-info2.readthedocs.io/") + (synopsis "Print versions of imported packages") + (description + "This package implements a functionality to print versions of imported +Python packages.") + (license license:mpl2.0))) + (define-public python-shxparser (package (name "python-shxparser") @@ -5348,29 +5378,6 @@ for additional processing.") "Fastprogress is a progress bar for Jupyter Notebook and console.") (license license:asl2.0))) -(define-public python-case - (package - (name "python-case") - (version "1.5.3") - (source - (origin - (method url-fetch) - (uri (pypi-uri "case" version)) - (sha256 - (base32 - "1cagg06vfph864s6l5jb0zqliwxh647bki8j6lf4a4qrv40jnhs8")))) - (build-system python-build-system) - (propagated-inputs - (list python-mock python-nose python-six)) - (native-inputs - (list python-coverage)) - (home-page "https://github.com/celery/case") - (synopsis "Unittest utilities and convenience methods") - (description - "The @code{case} package provides utilities on top of unittest, including -some helpful Python 2 compatibility convenience methods.") - (license license:bsd-3))) - (define-public python-verboselogs (package (name "python-verboselogs") @@ -8592,13 +8599,13 @@ via commands such as @command{rst2man}, as well as supporting Python code.") (define-public python-docx (package (name "python-docx") - (version "1.1.2") + (version "1.2.0") (source (origin (method url-fetch) (uri (pypi-uri "python_docx" version)) (sha256 (base32 - "1z9ffsvksaaxr90ijzq4k3adzb6p5ipy2j3rrbfjl05rjlpg5w8c")))) + "1ki0cbw3hbiz51ww3fi3vi770lk5r0c62889r819r756v2vxgjbv")))) (build-system pyproject-build-system) (native-inputs (list behave @@ -10773,27 +10780,37 @@ objects.") "This is a Python library for color math and conversions.") (license license:bsd-3))) +(define-public python-colormath2 + (package + (inherit python-colormath) + (name "python-colormath2") + (version "3.0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "colormath2" version)) + (sha256 + (base32 "1yigkhvjgbl9nrlijn4iwcs6k7i5y58drix1331cd1hb9wzn35z7")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-networkx python-numpy)) + (native-inputs (list python-setuptools python-wheel)) + (home-page "https://github.com/bkmgit/python-colormath2"))) + (define-public python-spectra (package (name "python-spectra") - (version "0.0.11") + (version "0.1.0") (source (origin (method url-fetch) (uri (pypi-uri "spectra" version)) (sha256 - (base32 - "1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ (invoke "nosetests" "-v")))))) + (base32 "0gva48a1rn5yxj6dgy76dnndqaf09k5q2l9r41h2a66b84rf6c3a")))) + (build-system pyproject-build-system) (propagated-inputs - (list python-colormath)) + (list python-colormath2)) (native-inputs - (list python-nose)) + (list python-pytest python-setuptools python-wheel)) (home-page "https://github.com/jsvine/spectra") (synopsis "Color scales and color conversion") (description @@ -11230,17 +11247,11 @@ To address this and enable easy cycling over arbitrary @code{kwargs}, the (file-name (git-file-name name version)) (sha256 (base32 "0x7nkphr6g5ql5fvgss8l56rgiyjgh6fm8zzs73i94ci9wzlm63w")))) - (build-system python-build-system) + (build-system pyproject-build-system) (propagated-inputs (list python-numpy)) (native-inputs - (list python-nose)) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "nosetests" "--all-modules" "-v" "colorspacious")))))) + (list python-nose python-setuptools python-wheel)) (home-page "https://github.com/njsmith/colorspacious") (synopsis "Python library for colorspace conversions") (description "@code{colorspacious} is a Python library that lets you @@ -11486,16 +11497,20 @@ toolkits.") #:tests? #f ;we're only generating documentation #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'avoid-external-deps + (lambda _ + ;; XXX: Avoid theme-switcher to avoid sphinx error + ;; TemplateNotFound('theme-switcher.html') + ;; XXX: Avoid version-switcher because it depends on an + ;; external file, and we pack only one version anyway. + (substitute* "doc/conf.py" + (("\ +\"navbar_end\": \\[\"theme-switcher\", \"version-switcher\", ") + "\"navbar_end\": [")))) (replace 'build (lambda _ (setenv "HOME" "/tmp") (chdir "doc") - (substitute* "conf.py" - ;; The sphinx_panels extension causes a "TypeError: first - ;; argument must be callable" to be raised when generating the - ;; info target; remove it (see: - ;; https://github.com/executablebooks/sphinx-panels/issues/74). - ((".*'sphinx_panels',.*") "")) (invoke "make" "html" "info" ;; Don't abort on warnings; build in parallel. (format #f "SPHINXOPTS=-j~a" (parallel-job-count))))) @@ -11518,25 +11533,30 @@ toolkits.") inkscape/pinned python-colorspacious python-ipython + python-ipykernel python-ipywidgets python-mpl-sphinx-theme python-numpydoc python-scipy python-sphinx python-sphinx-copybutton + python-sphinx-design python-sphinx-gallery python-sphinxcontrib-svg2pdfconverter texinfo - texlive-amsfonts - texlive-amsmath - texlive-babel - texlive-etoolbox - texlive-expdlist - texlive-fontspec - texlive-times - texlive-type1cm - texlive-underscore - texlive-unicode-math)) + texlive-dvipng-bin + (texlive-local-tree + (list texlive-amsfonts + texlive-amsmath + texlive-babel + texlive-cm-super + texlive-etoolbox + texlive-expdlist + texlive-fontspec + texlive-times + texlive-type1cm + texlive-underscore + texlive-unicode-math)))) (synopsis "Documentation for the @code{python-matplotlib} package"))) (define-public python-matplotlib-inline @@ -15724,31 +15744,29 @@ SVG, EPS, PNG and terminal output.") (define-public python-seaborn (package (name "python-seaborn") - (version "0.13.1") + (version "0.13.2") (source (origin (method url-fetch) (uri (pypi-uri "seaborn" version)) (sha256 (base32 - "0ycibcs6kvd3xi4zsxna81claqifyb9dn6z6jwc5x7lqqplnbbdz")))) + "1xzzxrbxsmmk39647vcx7avzdbzxw9vz8pc8yklnakcgk100mrlk")))) (build-system pyproject-build-system) + (arguments + (list + ;; 2358 passed, 16 skipped, 6 xfailed, 17 warnings + #:test-flags + #~(list "--numprocesses" (number->string (parallel-job-count)) ))) + (native-inputs + (list python-flit-core + python-pytest + python-pytest-xdist)) (propagated-inputs (list python-matplotlib python-numpy python-pandas python-scipy python-statsmodels)) - (native-inputs - (list python-flake8 - python-flit-core - python-ipykernel - python-nbconvert - python-numpydoc - python-mypy - python-pytest - python-pytest-cov - python-pytest-xdist - python-pyyaml)) (home-page "https://seaborn.pydata.org/") (synopsis "Statistical data visualization") (description @@ -21492,7 +21510,6 @@ applications.") #~(list "--ignore" "t/unit/transport/test_azurestoragequeues.py"))) (native-inputs (list python-botocore - python-case python-pyro4 python-pytest python-pytest-sugar @@ -21530,8 +21547,7 @@ RabbitMQ messaging server is the most popular implementation.") '("billiard/popen_spawn_win32.py" "billiard/_win.py"))))))) (native-inputs - (list python-case python-psutil python-pytest python-setuptools - python-wheel)) + (list python-psutil python-pytest python-setuptools python-wheel)) (home-page "https://github.com/celery/billiard") (synopsis "Python multiprocessing fork with improvements and bugfixes") (description @@ -21569,8 +21585,7 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.") (("tzdata.*") "tzdata\n"))))))) (native-inputs - (list python-case - python-dnspython + (list python-dnspython python-flaky python-google-cloud-storage python-iniconfig @@ -27970,21 +27985,20 @@ belong to tagged versions.") (method url-fetch) (uri (pypi-uri "setuptools-git" version)) (sha256 - (base32 - "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z")))) - (build-system python-build-system) + (base32 "0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - ;; This is needed for tests. - (add-after 'unpack 'configure-git - (lambda _ - (setenv "HOME" "/tmp") - (invoke "git" "config" "--global" "user.email" "guix") - (invoke "git" "config" "--global" "user.name" "guix") - #t))))) + (list + #:phases + #~(modify-phases %standard-phases + ;; This is needed for tests. + (add-after 'unpack 'configure-git + (lambda _ + (setenv "HOME" "/tmp") + (invoke "git" "config" "--global" "user.email" "guix") + (invoke "git" "config" "--global" "user.name" "guix")))))) (native-inputs - `(("git" ,git-minimal))) + (list git-minimal python-setuptools python-wheel)) (home-page "https://github.com/msabramo/setuptools-git") (synopsis "Setuptools revision control system plugin for Git") (description @@ -30184,14 +30198,14 @@ codecs for use in data storage and communication applications.") (define-public python-zarr (package (name "python-zarr") - (version "2.18.4") + (version "2.18.7") (source (origin (method url-fetch) (uri (pypi-uri "zarr" version)) (sha256 (base32 - "1fr41j8mxhbj7psn00416qs3nm12djhhmybgpqdax0q6vpg0wy9p")))) + "1xbjjpjskykbdskck5p1f0grh6wq36437ll0n5kazi6s2ipzdf5j")))) (build-system pyproject-build-system) (arguments (list @@ -30228,11 +30242,6 @@ codecs for use in data storage and communication applications.") (native-inputs (list python-pytest python-pytest-xdist - python-pytest-doctestplus - python-sphinx - python-sphinx-copybutton - python-sphinx-design - python-sphinx-issues python-setuptools python-wheel)) (home-page "https://github.com/zarr-developers/zarr-python") @@ -30245,13 +30254,13 @@ N-dimensional arrays for Python.") (define-public python-dill (package (name "python-dill") - (version "0.3.9") + (version "0.4.0") (source (origin (method url-fetch) (uri (pypi-uri "dill" version)) (sha256 - (base32 "0b2inivjahjlph54a70x6wi3pax4qsgclhlw0blbz37nvmyjdal1")))) + (base32 "1w5w5hlijw7ahqji45ssyvdip5pv074h4nw97bsj8ws7vz9g2cq6")))) (build-system pyproject-build-system) (arguments (list @@ -30280,14 +30289,14 @@ the saved state of the original interpreter session.") (define-public python-multiprocess (package (name "python-multiprocess") - (version "0.70.17") + (version "0.70.18") (source (origin (method url-fetch) (uri (pypi-uri "multiprocess" version)) (sha256 (base32 - "0ypm9yj1ng1s96hk2iwll190dkpc2j5zras8kay9x00n6hdg3qja")))) + "03bdxiincqq3g66vl3sf5ygagjz5sbrpr83djlipprmkwql72ngr")))) (build-system pyproject-build-system) (arguments (list @@ -30319,7 +30328,7 @@ preload_resources\ (format #t "test suite not run~%"))))))) (propagated-inputs (list python-dill)) - (native-inputs (list python-setuptools python-wheel)) + (native-inputs (list python-setuptools-next)) (home-page "https://pypi.org/project/multiprocess/") (synopsis "Multiprocessing and multithreading in Python") (description @@ -31299,26 +31308,22 @@ by Igor Pavlov.") (define-public python-ifaddr (package (name "python-ifaddr") - (version "0.1.7") + (version "0.2.0") (source (origin (method url-fetch) (uri (pypi-uri "ifaddr" version)) (sha256 - (base32 - "150sxdlicwrphmhnv03ykxplyd2jdrxz0mikgnivavgilrn8m7hz")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ (invoke "nosetests")))))) + (base32 "1m5fqjqf53m31qrl8fxp2sbwf4mvk5mbjpw2jm2x8rgpmg5by36c")) + (snippet #~(delete-file "ifaddr/_win32.py")))) + (build-system pyproject-build-system) (native-inputs - (list python-nose)) + (list python-pytest python-setuptools python-wheel)) (home-page "https://github.com/pydron/ifaddr") (synopsis "Network interface and IP address enumeration library") - (description "This package provides a network interface and IP address -enumeration library in Python.") + (description + "This package provides a network interface and IP address enumeration +library in Python.") (license license:expat))) (define-public python-zeroconf @@ -32123,56 +32128,33 @@ layer and then tune the behaviour with any of the lower layers including the native API of @code{python-argparse}.") (license license:lgpl3+))) -(define-public python-ppft - (package - (name "python-ppft") - (version "1.6.6.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "ppft" version)) - (sha256 - (base32 - "1z1invkhszc5d2mvgr221v7cszzifcc77mz0pv3wjp6x5q2768cy")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ; there are none - (propagated-inputs - (list python-six)) - (home-page "https://pypi.org/project/ppft/") - (synopsis "Fork of Parallel Python") - (description - "This package is a fork of Parallel Python. The Parallel Python -module (@code{pp}) provides an easy and efficient way to create -parallel-enabled applications for @dfn{symmetric multiprocessing} (SMP) -computers and clusters. It features cross-platform portability and dynamic -load balancing.") - (license license:bsd-3))) - (define-public python-pox (package (name "python-pox") - (version "0.2.7") + (version "0.3.6") (source (origin (method url-fetch) (uri (pypi-uri "pox" version)) (sha256 (base32 - "0y17ckc2p6i6709s279sjdj4q459mpcc38ymg9zv9y6vl6jf3bq6")))) - (build-system python-build-system) + "01gnsgz6wfmpmb57qr4cgpkampiy6l7c1kxa0hlacn81c0wyvvl4")))) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (mkdir-p "/tmp/guix") - (setenv "SHELL" "bash") - (setenv "USERNAME" "guix") - (setenv "HOME" "/tmp/guix") ; must end on USERNAME... - (invoke "py.test" "-vv") - #t))))) + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (mkdir-p "/tmp/guix") + (setenv "SHELL" "bash") + (setenv "USERNAME" "guix") + (setenv "HOME" "/tmp/guix") ; must end on USERNAME... + (invoke "python" "./pox/tests/__main__.py"))))))) (native-inputs - (list python-pytest which)) + (list python-setuptools-next + which)) ;pox/tests/test_shutils.py (home-page "https://pypi.org/project/pox/") (synopsis "Python utilities for file system exploration and automated builds") (description @@ -32185,39 +32167,6 @@ discovery of what has been installed on an operating system, and where the essential tools are located.") (license license:bsd-3))) -(define-public python-pathos - (package - (name "python-pathos") - (version "0.2.5") - (source - (origin - (method url-fetch) - (uri (pypi-uri "pathos" version)) - (sha256 - (base32 - "0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1")))) - (build-system python-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (invoke "python" "./tests/__main__.py")))))) - (propagated-inputs - (list python-dill python-multiprocess python-pox python-ppft)) - (native-inputs - (list python-pytest)) - (home-page "https://pypi.org/project/pathos/") - (synopsis - "Parallel graph management and execution in heterogeneous computing") - (description - "Python-pathos is a framework for heterogeneous computing. It provides a -consistent high-level interface for configuring and launching parallel -computations across heterogeneous resources. Python-pathos provides configurable -launchers for parallel and distributed computing, where each launcher contains -the syntactic logic to configure and launch jobs in an execution environment.") - (license license:bsd-3))) - (define-public python-flit (package (name "python-flit") @@ -32830,30 +32779,6 @@ prevent debuggers and other applications from inspecting the memory within your process.") (license license:expat))) -(define-public python-owslib - (package - (name "python-owslib") - (version "0.19.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "OWSLib" version)) - (sha256 - (base32 "0v8vg0naa9rywvd31cpq65ljbdclpsrx09788v4xj7lg10np8nk0")))) - (build-system python-build-system) - (arguments - ;; TODO: package dependencies required for tests. - '(#:tests? #f - #:phases (modify-phases %standard-phases - (delete 'sanity-check)))) - (synopsis "Interface for Open Geospatial Consortium web service") - (description - "OWSLib is a Python package for client programming with Open Geospatial -Consortium (OGC) web service (hence OWS) interface standards, and their related -content models.") - (home-page "https://geopython.github.io/OWSLib/") - (license license:bsd-3))) - (define-public python-xattr (package (name "python-xattr") @@ -34612,15 +34537,23 @@ cleanly print different types of messages.") (base32 "0ipvj1pxdb6wb1sblh22h9gnh6byjnwcl7hfcnk88dmkslgp1z3s")) (modules '((guix build utils))) (snippet '(substitute* "pyproject.toml" - ;; We have virtualenv 20.3.1. - (("virtualenv>=20.16.2") - "virtualenv>=20.3.1"))))) + ;; We have virtualenv 20.3.1. + (("virtualenv>=20.16.2") + "virtualenv>=20.3.1"))))) (build-system pyproject-build-system) (arguments (list + ;; tests: 611 passed, 14 skipped, 35 deselected #:test-flags - ;; XXX: tests below fail due to zipfile reporting incorrect zip dates. - #~(list "-k" + ;; TODO: A lot of tests fail due to requirement of newer hatchling which + ;; is updated on python-team, review after it's merged. + #~(list "--ignore=tests/cli/" + ;; Mostly fail due incompatibility or wrong diffs. + "--ignore=tests/backend/" + ;; FileNotFoundError: [Errno 2] No such file or directory + "--ignore=tests/index/test_core.py" + ;; XXX: tests below fail due to zipfile reporting incorrect zip dates. + "-k" (string-append "not " (string-join @@ -34637,10 +34570,10 @@ cleanly print different types of messages.") "test_editable_exact_force_include_build_data_precedence" "test_editable_pth") " and not "))) - #:phases #~(modify-phases %standard-phases - (add-before 'check 'pre-check - (lambda _ - (setenv "HOME" "/tmp")))))) + #:phases #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + (setenv "HOME" "/tmp")))))) (native-inputs (list git-minimal python-pytest python-pytest-mock @@ -35271,23 +35204,23 @@ handling those variations.") (define-public python-qdarkstyle (package (name "python-qdarkstyle") - (version "2.8.1") + (version "3.2.3") (source (origin (method url-fetch) (uri (pypi-uri "QDarkStyle" version)) (sha256 (base32 - "0883vzg35fzpyl1aiijzpfcdfvpq5vi325w0m7xkx7nxplh02fym")))) - (build-system python-build-system) - (arguments - `(;; Fails unable to detect valid Qt bindings even when - ;; added as native-inputs. - #:tests? #f)) + "1bpi0asa7sd5ch6x6b60n5yias04nsx6kcwji40228g9lrs7y2qc")))) + (build-system pyproject-build-system) + (native-inputs (list python-pytest + python-qtsass + python-setuptools + python-watchdog + python-wheel)) (propagated-inputs - (list python-helpdev python-qtpy)) - (home-page - "https://github.com/ColinDuquesnoy/QDarkStyleSheet") + (list python-qtpy python-pyqt-6)) + (home-page "https://github.com/ColinDuquesnoy/QDarkStyleSheet") (synopsis "Complete dark stylesheet for Python and Qt applications") (description "QDarkStyle is the most complete dark stylesheet for Python and |