guix/tests/import
Nicolas Graves 070d2b6c49
import: pypi: Fix tests.
* guix/import/pypi.scm (unzip-command): Use invoke instead of
system*.
(read-wheel-metadata): Adapt accordingly.
(guess-requirements-from-wheel): Improve readability.

* tests/import/pypi.scm (parse-wheel-metadata): Add test (used to
isolate the issue in another test).
(pypi->guix-package, no wheel): Remove python-wheel from the result.
(pypi->guix-package, no usable requirement file, no wheel.): Likewise.
(pypi->guix-package, package name contains \"-\" followed by digits):
Likewise.
(package-latest-release): Likewise.
(pypi->guix-package, no requires.txt, but wheel): Likewise. Also
improve readability.

Change-Id: I49e6ae549437a068acd85fa0f13471bc0af5a399
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-25 15:45:37 +00:00
..
composer.scm import: composer: Move tests to tests/import/composer.scm. 2025-10-01 11:04:17 +02:00
cpan.scm import: cpan: Move tests to tests/import/cpan.scm. 2025-10-01 11:00:36 +02:00
cran.scm import/cran: Detect library references in "check_installed". 2025-11-29 12:19:09 +01:00
crate.scm import: crate: Generate comments with ‘TODO REVIEW:’ prefix. 2026-01-18 10:13:38 +01:00
egg.scm import: egg: Move tests to tests/import/egg.scm. 2025-10-01 11:00:36 +02:00
elm.scm import: elm: Move tests to tests/import/elm.scm. 2025-10-01 11:00:36 +02:00
elpa.scm import: elpa: Move tests to tests/import/elpa.scm. 2025-10-01 11:04:16 +02:00
gem.scm import: gem: Move tests to tests/import/gem.scm. 2025-10-08 10:57:00 +02:00
git.scm import: git: Move tests to tests/import/git.scm. 2025-10-01 11:04:15 +02:00
github.scm import: github: Move tests to tests/import/github.scm. 2025-10-01 11:04:16 +02:00
go.scm import: go: Move tests to tests/import/go.scm. 2025-10-01 11:00:36 +02:00
hackage.scm
hexpm.scm import: hexpm: Move tests to tests/import/hexpm.scm. 2025-10-01 11:04:16 +02:00
luanti.scm import: luanti: Move tests to tests/import/luanti.scm. 2025-10-01 11:04:16 +02:00
npm-binary.scm import: npm-binary: Move tests to tests/import/npm-binary.scm. 2025-10-01 11:04:17 +02:00
nuget.scm import: nuget: Add tests and documentation. 2026-01-19 19:21:52 +01:00
opam.scm import: opam: Move tests to tests/import/opam.scm. 2025-10-01 11:04:16 +02:00
print.scm import: print: Move tests to tests/import/print.scm. 2025-10-01 11:04:16 +02:00
pypi.scm import: pypi: Fix tests. 2026-01-25 15:45:37 +00:00
texlive.scm import: texlive: Move tests to tests/import/texlive.scm. 2025-10-01 11:04:16 +02:00
utils.scm import: utils: Add generate-git-source procedure. 2025-10-24 16:42:53 +02:00