Commit graph

5367 commits

Author SHA1 Message Date
Sharlatan Hellseher
1fbaa8a408
gnu: python-openpyxl: Reduce closure size.
* gnu/packages/python-xyz.scm (python-openpyxl):
  [propagated-inputs]: Remove python-jdcal - not listed in install
  dependencies.
  [native-inputs]: Remove python-wheel.

Change-Id: I862613faafe2c4fae4c85b26b38a882ea84f12b5
2025-09-25 09:35:58 +01:00
Sharlatan Hellseher
c34260c16e
gnu: python-xlrd: Update to 2.0.2.
* gnu/packages/python-xyz.scm (python-xlrd): Update to 2.0.2.
  [build-system]: Use pyproject.
  [native-inputs]: Add python-setuptools.

Change-Id: I7622d787dd9f6c516952a5680e1028707406817a
2025-09-25 09:35:58 +01:00
Sharlatan Hellseher
d2972d8b0d
gnu: python-et-xmlfile: Update to 2.0.0.
* gnu/packages/python-xyz.scm (python-et-xmlfile): Update to 2.0.0.
  [build-system]: Use pyproject.
  [arguments] <phases>: Use default 'check.
  [native-inputs]: Add python-setuptools.

Change-Id: I8275f0b9980b1aa70785dcb4d60ff86b6a9053b9
2025-09-25 09:35:57 +01:00
Sharlatan Hellseher
f20e543db7
gnu: python-argcomplete: Fix tests.
* gnu/packages/python-xyz.scm (python-argcomplete)
[arguments] <test-backend>: Use custom.
<test-flags>: Move option here from custom 'check phase..
<phases>: Use default 'check; add disable-pip-tests..
[native-inputs]: Remove python-coverage, python-mypy, and python-wheel.

Change-Id: Ica763b449ebef64000181fe192cad691be39db73
2025-09-25 09:35:56 +01:00
Sharlatan Hellseher
e15771f1fc
gnu: python-matplotlib: Reduce closure size.
* gnu/packages/python-xyz.scm (python-matplotlib):
  [native-inputs]: Remove python-setuptools-scm-git-archive.

Change-Id: I0db74e40f935b76e49d9cb8f0214513fb41fa8b8
2025-09-25 09:35:56 +01:00
Jake Forster
1056e4697c
gnu: python-matplotlib: Set the default backend to TkAgg.
The interactive backend TkAgg works out of the box (i.e. without requiring
changes to user Python code) since commit
d5d790b5e0f7690d6bef9224932909a68f4fccbe.

* gnu/packages/python-xyz.scm (python-matplotlib) [arguments]
<#:phases>{configure-environment}: Change rc_options backend from Agg to
TkAgg.

Change-Id: I5614e37e674838ba8ad3ebc76c0ed42973d5ec29
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-09-25 09:35:56 +01:00
Jake Forster
ebeb9707d5
gnu: python-matplotlib: Patch dlopen so MPLBACKEND is not overridden.
Fixes <https://issues.guix.gnu.org/70687>.

In Python, importing 'matplotlib.pyplot' sets the backend used by Matplotlib
to Agg unless it was set to WebAgg or nbAgg.  This is because it incorrectly
determines that no event loop can be started due to a failed dlopen call for
'libX11.so.6'.  This is fixed by patching the dlopen path.

* gnu/packages/python-xyz.scm (python-matplotlib) [arguments]
<#:phases>: Add 'patch-dlopen.

Change-Id: I3e45c9a2921374e3b16cfcbd8e3e1e91780da306
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-09-25 09:35:56 +01:00
Sharlatan Hellseher
d1775507d1
gnu: python-cycler: Update to 0.12.1.
* gnu/packages/python-xyz.scm (python-cycler): Update to 0.12.1.
  [build-system]: Use pyporject.
  [propagated-inputs]: Remove python-six.
  [native-inputs]: Add python-pytest and python-setuptools.

Change-Id: I220e869568761cdcbf8ba0219207c42de0271ab0
2025-09-25 09:35:56 +01:00
Sharlatan Hellseher
eb308effb0
gnu: python-cppy: Update to 1.3.1.
* gnu/packages/python-xyz.scm (python-cppy): Update to 1.3.1.
[native-inputs]: Add python-pytest and python-setuptools-scm.

Change-Id: I45f88d7efd3cb20bfb7b8f14b90d15ddcc081a6d
2025-09-25 09:35:56 +01:00
Sharlatan Hellseher
5b69d15eee
gnu: python-wurlitzer: Update to 3.1.1.
* gnu/packages/python-xyz.scm (python-wurlitzer): Update to 3.1.1.
[native-inputs]: Remove python-mock; add python-setuptools.

Change-Id: Ie56041f27f6a8f0b707decde2423ffcd00f640de
2025-09-25 09:35:56 +01:00
Nicolas Graves
995071641b
gnu: python-rich: Ignore more failing tests.
* gnu/packages/python-xyz.scm (python-rich)[arguments][test-flags}:
Ignore more failing tests.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-09-25 09:35:55 +01:00
Sharlatan Hellseher
eff7e1db41
gnu: python-commonmark: Switch to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-commonmark):
  [build-system]: Use pyproject.
  [arguments] <phases>: Use default 'check.
  [native-inputs]: Add python-setuptools.

Change-Id: I820373fc3e23ccb3222a6409e0ea7b977376e776
2025-09-25 09:35:55 +01:00
Sharlatan Hellseher
98b4c5d529
gnu: python-flit: Reduce closure size.
* gnu/packages/python-xyz.scm (python-flit): Documentation is not built,
  remove dependencies on Sphinx.
  [propagated-inputs]: Remove python-pypa-build.
  [native-inputs]: Remove python-pygments-github-lexers,
  python-pytest-cov, python-sphinx, and python-sphinxcontrib-github-alt.

Change-Id: Iba62d2c1c52b64db65e29cbdd0381f470ee3116d
2025-09-25 09:35:55 +01:00
Nguyễn Gia Phong
6416a324d7
gnu: python-flit: Update to 3.12.0.
* gnu/packages/python-xyz.scm (python-flit): Update to 3.12.0.

Change-Id: I24833e303dcda9613b2ab76761b29347a603d0dc
2025-09-25 09:35:55 +01:00
Sharlatan Hellseher
4af6c9fa78
gnu: python-beautifulsoup4: Update to 4.13.4.
* gnu/packages/python-xyz.scm (python-beautifulsoup4): Update to 4.13.4.
  [propagated-inputs]: Add python-typing-extensions, python-cchardet,
  python-chardet, and python-charset-normalizer.

Change-Id: I90db98f1547455732eb21d0efba865e351537336
2025-09-25 09:35:55 +01:00
Sharlatan Hellseher
7c4cb10ac7
gnu: python-soupsieve: Update to 2.7.
* gnu/packages/python-xyz.scm (python-soupsieve): Update to 2.7.
  [build-system]: Use pyproject.
  [arguments] <tests?>: Enable.
  <phases>: Keep 'sanity-check.
  [native-inputs]: Add python-beautifulsoup4-bootstrap,
  python-hatchling, and python-pytest.

Change-Id: Iaf299e23c70832e1d90b7dcaec4a2ab0f058c5af
2025-09-25 09:35:54 +01:00
Sharlatan Hellseher
1afb94ae48
gnu: Add python-beautifulsoup4-bootstrap.
* gnu/packages/python-xyz.scm (python-beautifulsoup4-bootstrap): New variable.

Change-Id: I776b58a6290c9d7b20e27281dccfc9ad6d333a6e
2025-09-25 09:35:54 +01:00
Sharlatan Hellseher
f229f007ef
gnu: python-imagesize: Set test-backend.
* gnu/packages/python-xyz.scm (python-imagesize) [arguments]
  <test-backend>: Set to 'unittest.

Change-Id: I3bdc531fc38f6b9b2ab5f461f89dcfba4d71f696
2025-09-25 09:35:53 +01:00
Sharlatan Hellseher
254fdd04b9
gnu: python-olefile: Update to 0.47.
* gnu/packages/python-xyz.scm (python-olefile): Update to 0.47.
  [source]: Switch to git-fetch.
  [build-system]: Use pypproject.
  [native-inputs]: Add python-pytest and python-setuptools.

Change-Id: Ia74e58310f6810a888b7d20b44aed2bfa0a6e2c7
2025-09-25 09:35:53 +01:00
Sharlatan Hellseher
50caf2b5e3
gnu: python-markdown2: Update to 2.5.3.
* gnu/packages/python-xyz.scm (python-markdown2): Update to 2.5.3.
  [arguments] <test-backend>: Use 'custom.
  <test-flags>: Provides options as seen in project's Makefile.
  [native-inputs]: Remove python-pygments, python-pytest, and
  python-wheel.

Change-Id: I502c32abd249a1b3b8532e01621dc36ce7b74734
2025-09-25 09:35:53 +01:00
Sharlatan Hellseher
f7f6e2955b
gnu: python-anytree: Update to 2.13.0.
* gnu/packages/python-xyz.scm (python-anytree): Update to 2.13.0.
  [propagated-inputs]: Remove python-six.
  [native-inputs]: Remove python-poetry-core; add python-pdm-backend,
  python-pytest-cov, python-pyyaml and python-test2ref.

Change-Id: I013875d693c0bc910544d0edbae0764103165b50
2025-09-25 09:35:53 +01:00
Sharlatan Hellseher
15fb90edc9
gnu: python-binaryornot: Switch to pyproejct-build-system.
* gnu/packages/python-xyz.scm (python-binaryornot):
  [build-system]: Use pyproejct.
  [arguments] <test-backend>: Use custom unittest.
  <phases>: Remove trailing #t from lambdas.
  [propagated-inputs]: Remove python-hypothesis.
  [native-inputs]: Add python-hypothesis and python-setuptools.

Change-Id: Ic6e24e1bbfae846bc9b0ab9195556fcf86af9c25
2025-09-25 09:35:52 +01:00
Sharlatan Hellseher
ccd86b711f
gnu: python-scour: Switch to pyproject-build-system.
This project is unmaintained since 2020, the only user is Inkscape, and
the development has been moved to GitLab.

See: <https://gitlab.com/inkscape/inkscape-docs/documentation/-/issues/43>,
     <https://github.com/scour-project/scour/issues/321>.

* gnu/packages/python-xyz.scm (python-scour): Add a maintenance note on
  the upstream status.
  [source] <url>: Switch to Inkscape's GitLab page.
  [build-system]: Use pyproject.
  [arguments] <test-backend>: Use 'custom.
  [native-inputs]: Add python-setuptools.
  [home-page]: Switch URL to Inkscape's GitLab page.
  [description]: Start from a new line, fix fill column.

Change-Id: I56d94188b8a69a6739e5d2a5550bb0a3ee8b9247
2025-09-25 09:35:52 +01:00
Sharlatan Hellseher
7809bebb39
gnu: python-appdirs: Switch to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-appdirs):
  [build-system]: Use pyproject.
  [arguments] <test-backend>: Use 'unittest.
  [native-inputs]: Add python-setuptools.

Change-Id: I234b65a99870f0e7e373681719b1ba61e2da85fb
2025-09-25 09:35:52 +01:00
Sharlatan Hellseher
7674e46b19
gnu: python-flasgger: Reduce closure size.
* gnu/packages/python-xyz.scm (python-flasgger): Update to 0.9.7.1.
  [arguments] <test-flags>: Skip example tests to reduce closure size
  from native inputs.
  <phases>: Remove 'prepare-check.
  [native-inputs]: Remove python-apispec, python-apispec-webframeworks,
  python-decorator, python-flask-restful, python-flex,
  python-marshmallow, python-pytest-cov, and python-wheel.

Change-Id: I724855c2cdd22d9d36c0f7716ae183cf3b7db382
2025-09-25 09:35:52 +01:00
Sharlatan Hellseher
0ac41884fe
gnu: python-dotenv: Update to 1.1.1.
* gnu/packages/python-xyz.scm (python-dotenv): Update to 1.1.1.
  [build-system]: Use pyproject.
  [arguments]: Drop them.
  [native-inputs]: Remove python-mock; add python-setuptools.

Change-Id: I6dce45f8aabf5dc12f3b37b2d851d910a2786b6b
2025-09-25 09:35:51 +01:00
Sharlatan Hellseher
d348f3f21f
gnu: python-anyio: Reduce closure size.
* gnu/packages/python-xyz.scm (python-anyio): Reduce closure size.
  [propagated-inputs]: Remove python-contextvars and
  python-typing-extensions.
  [native-inputs]: Remove python-wheel.

Change-Id: I740b7e3fd1c3b89eb762729e04fe70c71ea50202
2025-09-25 09:35:50 +01:00
Sharlatan Hellseher
e146256401
gnu: python-sh: Update to 2.2.2.
* gnu/packages/python-xyz.scm (python-sh): Update to 2.2.2.
  [build-system]: Use pyproject.
  [arguments] <test-flags>: Skip some shaky tests.
  <phases>: Add 'pre-check and use default 'check.
  [native-inputs]: Remove python-coverage; add python-poetry-core and
  python-pytest.

Change-Id: Ibf59528a75ea21a3312b8afa3eece2ef5273de69
2025-09-25 09:35:50 +01:00
Sharlatan Hellseher
fb8e47c541
gnu: python-async-generator: Switch to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-async-generator)
  [build-system]: Use pyproject.
  [native-inputs]: Add python-setuptools.

Change-Id: I230bdc35578a03cd1fd5a614ee5b6eb1e659d6f8
2025-09-25 09:35:50 +01:00
Sharlatan Hellseher
a917cad05d
gnu: python-outcome: Update to 1.3.0.post0.
* gnu/packages/python-xyz.scm (python-outcome): Update to 1.3.0.post0.
[native-inputs]: Remove python-pytest-cov; add python-setuptools.

Change-Id: I04d1a829ffdee4ada25e70e09308d73b1af073cc
2025-09-25 09:35:50 +01:00
Sharlatan Hellseher
260269a0d4
gnu: python-pyasn1-modules: Update to 0.4.2.
* gnu/packages/python-xyz.scm (python-pyasn1-modules): Update to 0.4.2.
  [build-system]: Use pyproject.
  [arguments] <test-backend>: Use unittest.
  [native-inputs]: Add python-setuptools.
  [home-page]: Fix URL as the project has migrated to GitHub.

Change-Id: I9c40854215589fbae87f9f7c44aa5c52e1f47cb9
2025-09-25 09:35:49 +01:00
Sharlatan Hellseher
e1ee92f30c
gnu: python-importlib-metadata: Update to 8.7.0.
* gnu/packages/python-xyz.scm (python-importlib-metadata): Update to 8.7.0.
  [build-system]: Use pyproject.
  [arguments]: Drop them.
  [native-inputs]: Remove python-pypa-build and python-pytest; add
  python-jaraco-test, python-packaging-bootstrap,
  python-pytest-bootstrap, and python-setuptools.

Change-Id: I9ba93055061c44999a368d302d439f8123755afa
2025-09-25 09:35:49 +01:00
Sharlatan Hellseher
e6dbf583f7
gnu: python-async-timeout: Update to 5.0.1.
* gnu/packages/python-xyz.scm (python-async-timeout): Update to 5.0.1.
[native-inputs]: Add python-pytest-asyncio.

Change-Id: Ia3332930600cf56c36454493e62776f921480c4c
2025-09-25 09:35:49 +01:00
Sharlatan Hellseher
26c24db8c4
gnu: python-mistune: Update to 3.1.3.
* gnu/packages/python-xyz.scm (python-mistune): Update to 3.1.3.
[native-inputs]: Add python-pytest.

Change-Id: If0954697380a12d0eb61e844a0d082553ae29aa2
2025-09-25 09:35:49 +01:00
Sharlatan Hellseher
e8841b5115
gnu: python-pyasn1: Update to 0.6.1.
* gnu/packages/python-xyz.scm (python-pyasn1): Update to 0.6.1.
  [build-system]: Use pyproject.
  [arguments] <test-backend>: Use 'unittest.
  [native-inputs]: Add python-setuptools.
  [home-page]: Fix URL as development moved to GitHub.

Change-Id: Idcf44dacf179be325f171cabe9c06f906d0b45ed
2025-09-25 09:35:49 +01:00
Sharlatan Hellseher
25a65f3192
gnu: python-isoduration: Do not try to run tests.
* gnu/packages/python-xyz.scm (python-isoduration) [arguments] <tests?>:
  Visually disable tests as PyPI archive provides none.

Change-Id: I1c4177544a859b38d8c40f800ad1969ad6af8b59
2025-09-25 09:35:48 +01:00
Sharlatan Hellseher
637277e1b7
gnu: python-rfc3339-validator: Switch to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-rfc3339-validator):
  [build-system]: Use pyproject.
  [native-inputs]: Remove python-hypothesis and python-pytest-runner;
  add python-setuptools.

Change-Id: I94807d4307e1896d0493003da762ed3139b5ac8f
2025-09-25 09:35:48 +01:00
Sharlatan Hellseher
facdb268d5
gnu: python-rfc3986-validator: Reduce closure size.
* gnu/packages/python-xyz.scm (python-rfc3986-validator)
[native-inputs]: Remove python-pip, python-pytest-runner, and
python-wheel.

Change-Id: I28a78201d142953b2b4a2e4ec6a0c7e17cf0f702
2025-09-25 09:35:48 +01:00
Sharlatan Hellseher
9122f3929f
gnu: python-rfc3987: Update to 1.3.8.
* gnu/packages/python-xyz.scm (python-rfc3987): Update to 1.3.8.
  [build-system]: Use pyproject.
  [arguments] <test-backend>: Use 'custom.
  [native-inputs]: Add python-setuptools.

Change-Id: Ia1f62b969de5ba0eeab3c0cc48bccb3b9c703522
2025-09-25 09:35:48 +01:00
Sharlatan Hellseher
c7114c8a9c
gnu: python-strict-rfc3339: Switch to pyproject-build-system.
* gnu/packages/python-xyz.scm (python-strict-rfc3339):
  [build-system]: Use pyproject.
  [native-inputs]: Add python-setuptools.

Change-Id: I5d96db0720775f872d61b55d77e3fbc6fa230608
2025-09-25 09:35:48 +01:00
Sharlatan Hellseher
6a5dd284a6
gnu: python-jsonpointer: Update to 3.0.0.
* gnu/packages/python-xyz.scm (python-jsonpointer): Update to 3.0.0.
  [arguments] <test-backend>: Set to 'unittest.

Change-Id: I2fdc9c98ac3d64ecd45771636b18304213f8ea62
2025-09-25 09:35:48 +01:00
Sharlatan Hellseher
65477af738
gnu: python-dateparser: Update to 1.2.2.
* gnu/packages/python-xyz.scm (python-dateparser): Update to 1.2.2.
[native-inputs]: Remove python-wheel.

Change-Id: I9077b232f77f5b2c3872c67cac891a1acd44c188
2025-09-25 09:35:47 +01:00
Sharlatan Hellseher
d040cf4fa0
gnu: Add python-types-python-dateutil.
* gnu/packages/python-xyz.scm (python-types-python-dateutil): New variable.

Change-Id: I823d4d3b077326d8c16b79a0dfd43e4b4b7314e4
2025-09-25 09:35:47 +01:00
Sharlatan Hellseher
b5ffd96e0e
gnu: python-regex: Update to 2024.11.6.
* gnu/packages/python-xyz.scm (python-regex): Update to 2024.11.6.
  [build-system]: Use pyproject.
  [arguments] <test-backend>: Use 'unittest.
  <phases>: Use default 'check.
  [native-inputs]: Add python-setuptools.

Change-Id: I5657b0be454c775296d089aec771d316e6aeee27
2025-09-25 09:35:47 +01:00
Sharlatan Hellseher
973626c3c2
gnu: python-regex: Improve package style.
* gnu/packages/python-xyz.scm (python-regex): Use G-expressions.
  Fix indentation.
  [description]: Start from a new line and fix fill column.

Change-Id: I423719c74c606dd610b3f7da4dc6fc1e6c569f71
2025-09-25 09:35:47 +01:00
Sharlatan Hellseher
ba1947f655
gnu: python-importlib-resources: Update to 6.5.2.
* gnu/packages/python-xyz.scm (python-importlib-resources): Update to 6.5.2.
  [arguments]: Drop all custom build steps, covered by pyproject-build-system.
  [propagated-inputs]: Remove python-zipp.
  [native-inputs]: Remove python-flake8, python-pytest-black,
  python-pytest-checkdocs, python-pytest-cov, python-pytest-enabler,
  python-pytest-flake8, and python-pytest-mypy; add python-jaraco-test,
  python-jaraco-collections and python-zipp.

Change-Id: I5c913e2a63389069344bc055e9575f328077858a
2025-09-25 09:35:47 +01:00
Sharlatan Hellseher
868cc3edfa
gnu: python-simplejson: Update to 3.20.1.
* gnu/packages/python-xyz.scm (python-simplejson): Update to 3.20.1.
  [build-system]: Use pyproject.
  [native-inputs]: Remove python-toml; add python-pytest and
  python-setuptools.

Change-Id: I181c5909e5325601f28fbef01f58cfeed9864f61
2025-09-25 09:35:46 +01:00
Sharlatan Hellseher
8031726431
gnu: python-dbus-python: Reduce closure size.
Tests never run before and silently were skipped because test-backend is
not known for pyrpoject-build-system which is tappy, this change
visually disables tests and remove some unused inputs from closure.

* gnu/packages/python-xyz.scm (python-dbus-python):
  [native-inputs]: Remove python-sphinx, python-sphinx-rtd-theme, and
  python-wheel.

Change-Id: I042ceace8f42ae8514751ffe0fee664db05ce2cc
2025-09-25 09:35:46 +01:00
Sharlatan Hellseher
b37e5ec48d
gnu: python-watchdog: Reduce closure size.
* gnu/packages/python-xyz.scm (python-watchdog)
  [propagated-inputs]: Remove python-pathtools.
  [native-inputs]: Remove python-wheel.

Change-Id: I9d65ea302dded43d655f1b54afaff6a35ae5e0c2
2025-09-25 09:35:46 +01:00
Sharlatan Hellseher
26fddd2e56
gnu: python-jaraco-test: Reduce closure size.
* gnu/packages/python-xyz.scm (python-jaraco-test):
  [propagated-inputs]: Add python-jaraco-collections.
  [native-inputs]: Remove python-jaraco-collections,
  python-pytest-checkdocs, python-pytest-enabler, and python-wheel.

Change-Id: I2928afd4293f5abbd8c62442f036cc2500ede1ee
2025-09-25 09:35:46 +01:00