Commit graph

813 commits

Author SHA1 Message Date
Sharlatan Hellseher
f35a36f906
gnu: python-flexmock: Move to python-check.
* gnu/packages/check.scm (python-flexmock): Move from here ...
* gnu/packages/python-check.scm: ... to here.
* gnu/packages/shellutils.scm: Add python-check module.

Change-Id: I6aebe1eb1f9bdbeb140af4538a9af0becccc6e92
2025-09-27 22:49:59 +01:00
Hugo Buddelmeijer
e976d192a4
gnu: python-flexmock: Fix by using python-poetry-core
* gnu/packages/check.scm (python-flexmock): Fix.
[native-inputs]: Remove poetry; add python-poetry-core.
[homepage]: Switch to https://flexmock.readthedocs.io/ as lint suggested.

Change-Id: I0271a2af4c18c957cad86e26b5d2f833e8184fc1
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-09-27 22:41:38 +01:00
Sharlatan Hellseher
c41b31efdb
gnu: subunit: Adjust style.
* gnu/packages/check.scm (subunit): Fix fill column and indentation.

Change-Id: I597432d65637369d0d7f77c3b59547555b5f259b
2025-09-25 09:36:53 +01:00
Hugo Buddelmeijer
0ba00cccde
gnu: subunit: Update to 1.4.4.
FWIW, I don't know why it is necessary to both have a `subunit`
package as well as a `python-subunit` package. But at least it
builds now.

* gnu/packages/check.scm (subunit): Update to 1.4.4.
[propagated-inputs]: Add python-iso8601 and python-pygobject.

Change-Id: Id37c498a6869b0ce724a854958b25bc298083fae
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-09-25 09:36:53 +01:00
Sharlatan Hellseher
ad8b5687a3
gnu: python-pylint: Update to 3.3.8.
* gnu/packages/check.scm (python-pylint): Update to 3.3.8.
[propagated-inputs]: Remove python-typing-extensions.
[native-inputs]: Remove python-wheel.

Change-Id: I3b598397599bea700994a0dacfc04d0332930c06
2025-09-25 09:36:41 +01:00
Nicolas Graves
4451ac2f52
gnu: python-pytest-forked: Add python-py propagated-input.
* gnu/packages/check.scm (python-pytest-forked)[propagated-inputs]:
Add python-py.

Change-Id: I9ff007703c4099016eedc276af195e8612fb20fd
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-09-25 09:36:36 +01:00
Sharlatan Hellseher
89e45153e7
gnu: Remove python-fixtures-bootstrap.
* gnu/packages/check.scm (python-fixtures-bootstrap): Delete variable.

Change-Id: I3a3777206aabcac54f78b1e2565632abb19a6f62
2025-09-25 09:36:32 +01:00
Sharlatan Hellseher
fc95709fbf
gnu: Remove python-subunit-bootstrap.
* gnu/packages/check.scm (python-subunit-bootstrap): Delete variable.

Change-Id: If88a19cc0360c8b8c51d2d2cf8a43d2612cacb6b
2025-09-25 09:36:32 +01:00
Sharlatan Hellseher
6b01cd3e79
gnu: python-subunit: Update to 1.4.4.
* gnu/packages/check.scm (python-subunit): Update to 1.4.4.
Don't inherit from python-subunit as it's no longer required and
migrate missing fields from it.
[build-system]: Switch to pygobject-build-system.
[arguments] <test-backend>: Use custom.
<test-flags>: Provide options to run testtols.
<phases>: Add 'disable-failing-tests, and
'disable-failing-console-scripts.
[propagated-inputs]: Remove python-extras; add python-iso8601 and
python-pygobject.
[native-inputs]: Remove python-hypothesis; add python-setuptools.

Change-Id: I394f8e3c3caf500cc875e8ba480bef108ad558aa
2025-09-25 09:36:32 +01:00
Sharlatan Hellseher
c7d6d65609
gnu: Remove python-testrepository-bootstrap.
* gnu/packages/check.scm (python-testrepository-bootstrap): Delete variable.

Change-Id: I06cbc9c9bed43956c75f9fabfcdf979198f285b7
2025-09-25 09:36:32 +01:00
Sharlatan Hellseher
4935a704df
gnu: python-testrepository: Update to 0.0.21.
* gnu/packages/check.scm (python-testrepository): Update to 0.0.21.
Don't inherit from python-testrepository as it's no longer required and
migrate missing fields from it.
[build-system]: Switch to pyproejct-build-system.
[arguments] <tests?>: All good now.
<phases>: Use custom 'check.
[propagated-inputs]: Remove python-testtools; add python-iso8601.
[native-inputs]: Remove python-mimeparse; add python-hatch-vcs,
python-hatchling, python-pytz, python-setuptools, python-testresources,
and python-testscenarios.

Change-Id: I460e73ceae61d61d0392621d0f5bd89b50238be8
2025-09-25 09:36:32 +01:00
Sharlatan Hellseher
16b558029d
gnu: python-testtools-bootstrap: Simplify.
* gnu/packages/check.scm (python-testtools-bootstrap): Inherit from
python-testtools and make it hidden.

Change-Id: I2575ade5cd4292aff4a6028c9c092437c8a8b396
2025-09-25 09:36:32 +01:00
Sharlatan Hellseher
748f6266a3
gnu: python-testtools: Switch to pyproject.
* gnu/packages/check.scm (python-testtools): Don't inherit from
python-testtools-bootstrap as it's no longer required and migrate
missing fields from it.
[build-system]: Switch to pyproject-build-system.
[arguments] <test-backend>: Use custom.
<test-flags>: Provide options to run testtols.
<phases>: Use default 'check; add 'pre-check.
[propagated-inputs]: Remove python-pbr.
[native-inputs]: Remove python-setuptools.
[licenses]: Fix it according to pyproject.toml and PyPI.

Change-Id: I7c9f5618d90b882141f1880ef7c29996d6a0364b
2025-09-25 09:36:32 +01:00
Sharlatan Hellseher
0c26b52b4c
gnu: python-testscenarios-bootstrap: Simplify.
* gnu/packages/check.scm (python-testscenarios-bootstrap): Inherit from
python-testscenarios and make it hidden.

Change-Id: Ic15bf00f629a3c45dd1aee1e5ea704c2f0bcb03d
2025-09-25 09:36:32 +01:00
Sharlatan Hellseher
43f439a5dd
gnu: python-testscenarios: Switch to pyproject.
* gnu/packages/check.scm (python-testscenarios): Don't inherit from
python-testscenarios-bootstrap as it's no longer required and migrate
missing fields from it.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-setuptools.

Change-Id: I7bb79f69b806d45896f29c86210096c4fb5bffb7
2025-09-25 09:36:31 +01:00
Sharlatan Hellseher
fbbd2d2f78
gnu: Remove python-testresources-bootstrap.
* gnu/packages/check.scm (python-testresources-bootstrap): Delete variable.

Change-Id: I987d4700b057fdcea164fd3873254d4f2cf21f41
2025-09-25 09:36:31 +01:00
Sharlatan Hellseher
6c870fec92
gnu: python-testresources: Update to 2.0.2.
* gnu/packages/check.scm (python-testresources): Update to 2.0.2. Don't
inherit from python-testresources-bootstrap as it's no longer required
and migrate missing fields from it.
[build-system]: Switch to pyproject-build-system.
[arguments] <test-backend>: Use custom.
<test-flags>: Provide options to run tests with testtools.
[native-inputs]: Add python-setuptools.
[home-page]: Fix it, taken from PyPI <https://pypi.org/project/testresources/>

Change-Id: I0e5dabcf2803c375f493d736c4b78f5c038023e8
2025-09-25 09:36:31 +01:00
Sharlatan Hellseher
b352ce65c3
gnu: python-fixtures: Update to 4.2.6.
* gnu/packages/check.scm (python-fixtures): Update to 4.2.6. Don't
inherit from python-fixtures-bootstrap as it's no longer required and
migrate missing fields from it.
[build-system]: Switch to pyproject-build-system.
[arguments] <phases>: Use default 'check.
[propagated-inputs]: Remove python-pbr, python-six, and python-extras.
[native-inputs]: Remove python-mock; add python-hatch-vcs and
python-hatchling.

Change-Id: I46eb61748ee345cd5e51056070d2210f2d787bb8
2025-09-25 09:36:31 +01:00
Sharlatan Hellseher
227a0e669a
gnu: Remove python-unittest2.
This package is no longer needed as per: "unittest2 is a backport of the
new features added to the unittest testing framework in Python 2.7 and
onwards.", it has no users in Guix.

* gnu/packages/check.scm (python-unittest2): Delete variable.

* gnu/local.mk (dist_patch_DATA): Deregister 2 patches.
* gnu/packages/patches/python-unittest2-python3-compat.patch: Delete file.
* gnu/packages/patches/python-unittest2-remove-argparse.patch: Likewise.

Change-Id: I7d67223cdd5a0e656a299d83ac28248d7db7c321
2025-09-25 09:36:30 +01:00
Sharlatan Hellseher
b26acf50bf
gnu: Remove python-pytest-cache.
* gnu/packages/check.scm (python-pytest-cache): Delete variable.

Change-Id: I37a4cc3a58ac32b9f9c83706be7632bc6e64f58d
2025-09-25 09:36:29 +01:00
Sharlatan Hellseher
f112a36c9c
gnu: Remove python-nosexcover.
It was a fork of "nose.plugins.cover" which is not maintained since 2018
and not in use by any packages in Guix.

* gnu/packages/check.scm (python-nosexcover): Delete variable.

Change-Id: I2e08f1d02df5e34cd0ab85d59cf4ce9fa365f901
2025-09-25 09:36:29 +01:00
Sharlatan Hellseher
bc2e049af1
gnu: Remove python-nose-exclude.
* gnu/packages/check.scm (python-nose-exclude): Delete variable.

Change-Id: I9dc5bfff16ba1014b9364e0e27c0b51096b2c774
2025-09-25 09:36:29 +01:00
Sharlatan Hellseher
a41b81d5dc
gnu: Remove python-gixy-ng.
* gnu/packages/check.scm (python-gixy-ng): Delete variable.

Change-Id: Ic90fe0cdb037cdef9f79ae399b2d179e84db4abd
2025-09-25 09:36:27 +01:00
Sharlatan Hellseher
69c80fdd0b
gnu: Remove cmdtest.
Not maintained, no users in Guix.

* gnu/packages/check.scm (cmdtest): Delete variable.

Change-Id: I254ff98633cf33f2c088ed8d82c7cb9dafc105f3
2025-09-25 09:36:26 +01:00
Sharlatan Hellseher
b8ea94c889
gnu: python-hypothesis-next: Set to python-hypothesis.
* gnu/packages/check.scm (python-hypothesis-next): Set to
  python-hypothesis.

Change-Id: Ia5d79b545d6da266db7a14d0b602e02196a6bd3e
2025-09-25 09:36:24 +01:00
Sharlatan Hellseher
7ef8d80092
gnu: python-pytest-mypy: Update to 1.0.1.
* gnu/packages/check.scm (python-pytest-mypy): Update to 1.0.1.
  [arguments] <test-flags>: Respect parallel jobs count; deselect one
  failing test.
  [propagated-inputs]: Remove python-attrs.
  [native-inputs]: Remove python-pexpect and python-wheel.

Change-Id: Ief9fdc73a02bbd062a3221fe87d3bb1d0f019301
2025-09-25 09:36:14 +01:00
Sharlatan Hellseher
19fb059489
gnu: python-codecov: Update to 2.1.13.
* gnu/packages/check.scm (python-codecov): Update to 2.1.13.
[build-system]: Switch to pyproject-build-system.
[arguments] <tests?>: No tests in PyPI archive.
[native-inputs]: Remove python-unittest2; add python-setuptools.

Change-Id: I2a7fe11fbf7812163e93cb62170f40b5cf85857d
2025-09-25 09:36:13 +01:00
Sharlatan Hellseher
52c3f210ab
gnu: python-pytest-examples: Update to 0.0.13.
* gnu/packages/check.scm (python-pytest-examples): Update to 0.0.13.
[arguments] <test-flags>: Rework skipped tests.
[phases] {relax-requirements}: Remove black from the list.

Change-Id: I642893ff64a3699dea65daa981656471ae28227f
2025-09-25 09:36:12 +01:00
Sharlatan Hellseher
7eb93b71ad
gnu: python-aiounittest: Update to 1.5.0.
* gnu/packages/check.scm (python-aiounittest): Update to 1.5.0.
  [build-system]: Use pyproject.
  [arguments] <phases>: Use default 'check.
  [native-inputs]: Remove python-coverage and python-nose; add
  python-pytest and python-setuptools.

Change-Id: I9331b74bf1a0405c74aca2480a151c10fca8490b
2025-09-25 09:36:11 +01:00
Sharlatan Hellseher
ea460c1aea
gnu: python-pytest-relaxed: Fix tests.
* gnu/packages/check.scm (python-pytest-relaxed):
  [arguments] <test-flags>: Skip one shaky test.
  [native-inputs]: Remove python-pytest and python-wheel; add
  python-pytest-bootstrap.

Change-Id: I56037bf27984dd14a7e3504aa8996e5d8748c8d4
2025-09-25 09:36:11 +01:00
Sharlatan Hellseher
adce9d90e3
gnu: python-pyhamcrest: Update to 2.1.0.
* gnu/packages/check.scm (python-pyhamcrest): Update to 2.1.0.
[source]: Switch to url-fetch, PyPI contains tests.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Remove python-pytest-cov, python-mock, python-pytest,
and python-hypothesis; add python-hatch-vcs, python-hatchling, and
python-pytest-bootstrap.

Change-Id: Icda80f0a54a5b043d887993056bce3667cd4ecec
2025-09-25 09:36:05 +01:00
Sharlatan Hellseher
fd65332b04
gnu: python-pytest-enabler: Update to 3.4.0.
* gnu/packages/check.scm (python-pytest-enabler): Update to 3.4.0.
  [arguments] <tests?>: Enable them.
  [propagated-inputs]: Add python-importlib-resources.
  [native-inputs]: Remove python-pytest-black, python-pytest-checkdocs,
  python-pytest-flake8, python-pytest-mypy, and python-types-toml.

Change-Id: I5d0ba4ef12ff15e100f4a851a6f10a11bd32b251
2025-09-25 09:36:04 +01:00
Sharlatan Hellseher
42d1d1ef22
gnu: python-pytest-datadir: Update to 1.7.2.
* gnu/packages/check.scm (python-pytest-datadir): Update to 1.7.2.
[propagated-inputs]: Remove python-pytest and python-wheel.
[native-inputs]: Add python-pytest-bootstrap and python-setuptools.

Change-Id: Iedc70026ae971cc7629cef002a66b989aef534e3
2025-09-25 09:36:02 +01:00
Sharlatan Hellseher
bb68040ae5
gnu: python-pyfakefs: Update to 5.9.1.
* gnu/packages/check.scm (python-pyfakefs): Update to 5.9.1.
  [source]: Switch to git-fetch, not GitHub repository provides proper
  releases and tests.
  <patches>: Drop it.
  [arguments] <test-backend>: Use 'custom.
  <test-flags>: Run all self tests without extra packages.
  <phases>: Add 'disable-root-tests.
  [build-system]: Use pyproject.
  [home-page]: Now pyproject.toml points to GitHub page as the main one,
  no reference to <http://pyfakefs.org/> in documentation was found.
  [native-inputs]: Remove python-pytest; add python-setuptools.

* gnu/packages/patches/python-pyfakefs-remove-bad-test.patch: Remove file.
* gnu/local.mk: Deregister patch.

Change-Id: I4427d889019275b304ad021d8e5d0829bcff518a
2025-09-25 09:35:49 +01:00
Sharlatan Hellseher
50e11feb34
gnu: python-parameterized: Disable tests.
Project has no updates since 2023, and might be not maintained see
<https://github.com/wolever/parameterized/issues/181>.

* gnu/packages/check.scm (python-parameterized) [arguments] <tests?>:
  Disable as all broken.

Change-Id: I3038cc08f86cd033c02c68976d91cb3f1b0ce0b9
2025-09-25 09:35:45 +01:00
Sharlatan Hellseher
ebbf589bef
gnu: python-pytest-randomly: Update to 3.16.0.
* gnu/packages/check.scm (python-pytest-randomly): Update to 3.16.0.
  [build-system]: Use pyproject.
  [arguments] <test-flags>: Utilize it.
  <phases>: Use default 'check.
  [propagated-inputs]: Remove python-importlib-metadata and python-pytest.
  [native-inputs]: Remove python-coverage; add python-pytest-bootstrap
  and python-setuptools.

Change-Id: I9b66590bdc37f5b8bf857a8aeb640755f994d4f8
2025-09-25 09:35:43 +01:00
Sharlatan Hellseher
ab2370955f
gnu: python-nose2: Update to 0.15.1.
* gnu/packages/check.scm (python-nose2): Update to 0.15.1.
  [build-system]: Use pyproject.
  [native-inputs]: Add python-setuptools.

Change-Id: I08d192e169eb25a2f27c8049e93520527f9b6f9f
2025-09-25 09:35:41 +01:00
Sharlatan Hellseher
c12463eed7
gnu: python-freezegun: Update to 1.5.3.
* gnu/packages/check.scm (python-freezegun): Update to 1.5.3.
  [source] <snippet>: Remove it as
  <https://github.com/spulec/freezegun/pull/397> was merged in 2021.
  [build-system]: Use pyproject.
  [arguments] <phases>: Use default 'check.
  [native-inputs]: Add python-setuptools and python-wheel.

Change-Id: Ia442db5e37060f972156f3af7ce748d3385cec8b
2025-09-25 09:35:41 +01:00
Sharlatan Hellseher
00dd33156c
gnu: python-coverage: Update to 7.9.2.
* gnu/packages/check.scm (python-coverage): Update to 7.9.2.
  [arguments] <test-flags>: Skip 5 more tests.
  [propagated-inputs]: Remove python-tomli.
  [native-inputs]: Remove python-wheel.

Change-Id: I1863857acd6337d69ade92db045ea4319ede1ffd
2025-09-25 09:35:40 +01:00
Sharlatan Hellseher
f4278f3905
gnu: python-pytest-xdist: Update to 3.8.0.
* gnu/packages/check.scm (python-pytest-xdist): Update to 3.8.0.
[propagated-inputs]: Remove python-pytest-forked.

Change-Id: I257e9588360389eb6438b858ba9d41abb448b8d3
2025-09-25 09:35:40 +01:00
Sharlatan Hellseher
252ee46742
gnu: Add python-pytest-asyncio-0.26.
* gnu/packages/check.scm (python-pytest-asyncio-0.26): New variable.

Change-Id: Ie72a17dd220f877e2f07ed3230a7a3dc5fa8f83f
2025-09-25 09:35:40 +01:00
Sharlatan Hellseher
77be668d6b
gnu: python-pytest-asyncio: Update to 1.0.0.
* gnu/packages/check.scm (python-pytest-asyncio): Update to 1.0.0.
  [arguments] <test-flags>: Skip 4 tests.
  [propagated-inputs]: Add python-typing-extensions.

Change-Id: Ie8be3423e62102943f8cc66114289a750ec63cb9
2025-09-25 09:35:39 +01:00
Sharlatan Hellseher
1f549f87b7
gnu: python-lit: Switch to pyproject-build-system.
* gnu/packages/check.scm (python-lit):
  [build-system]: Use pyproject.
  [arguments]: Utilize <test-backend> and <test-flags> instead of
  overwriting 'check phase.
  [native-inputs]: Add python-setuptools.

Change-Id: I606a34a54047d86b95af652aa87d408f127a1bb2
2025-09-25 09:35:39 +01:00
Sharlatan Hellseher
7b5d938a75
gnu: python-pytest: Update to 8.4.1.
* gnu/packages/check.scm (python-pytest): Update to 8.4.1.
  [arguments] <test-flags>: Skip only 2 tests.
  [propagated-inputs]: Remove python-attrs-bootstrap,
  python-exceptiongroup, python-py, and python-tomli; add
  python-pygments-bootstrap.
  [native-inputs]: Remove python-nose and python-pytest-bootstrap; add
  python-attrs-bootstrap.

Change-Id: Ib13c2578cc5fdd8508a83ed97ea2471ab756f541
2025-09-25 09:35:37 +01:00
Sharlatan Hellseher
d3e3103fc3
gnu: python-hypothesis: Update to 6.135.26.
* gnu/packages/check.scm (python-hypothesis): Update to 6.135.26.
  [build-system]: Use pyproject
  [arguments] <phases>: Keep 'sanity-check.
  [native-inputs]: Add python-setuptools, and python-wheel.

Change-Id: I306fd548268da91b2e86d2ca214771126331e0d1
2025-09-25 09:35:37 +01:00
Sharlatan Hellseher
34a1f53224
gnu: python-pytest-bootstrap: Reduce closure size.
* gnu/packages/check.scm (python-pytest-bootstrap): Use PACKAGE/INHERIT.
  [arguments] <phases>: Delete 'sanity-check.
  [native-inputs]: Remove python-iniconfig, python-tomli, and
  python-wheel.

Change-Id: I6e0820a7ea7b6b7008de7f5307002af9e5fc62af
2025-09-25 09:35:36 +01:00
Yelninei
64c35295f5
gnu: libfaketime: Fix 64-bit time_t on 32-bit platforms.
Fixes guix/guix#2633.

* gnu/packages/patches/libfaketime-32bit.patch : New patch.
* gnu/packages/check.scm (libfaketime)[#:phases]: Remove 'switch-libc-call phase and add
phase applying the patch. In 'pre-check don't skip any tests.

Change-Id: I86410d0cc8ef270c967ba880b10d4ae14181d783
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-09-17 11:55:13 +02:00
Sharlatan Hellseher
24a1720154
gnu: actionlint: Activate tests.
* gnu/packages/check.scm (actionlint)[arguments]<test-subdirs>: Run
tests from the project's root, there is no tests in "cmd/actionlint".

Change-Id: I84df63c8fad5a7afc0c26730b1b2a1ec8e795b19
2025-09-09 09:49:55 +01:00
Sharlatan Hellseher
9461b0972c
gnu: actionlint: Update to 1.7.7.
* gnu/packages/check.scm (actionlint): Update to 1.7.7.

Change-Id: I0a8cc4dda3146d197f6c8a266d76e71baec250b4
2025-09-09 09:49:54 +01:00
Sharlatan Hellseher
2aed41a0cb
gnu: gotestsum: Update to 1.12.3.
* gnu/packages/check.scm (gotestsum): Update to 1.12.3. Fix indentation.
[arguments]<install-source?>: As for the final executable it's not required.
[home-page]: Place above [synopsis].
[description]: Start from a new line and fix fill-column.

Change-Id: I9a4f11c03895f240224d0293fcdfb3b8c2827603
2025-09-09 09:49:54 +01:00