diff options
author | Vivien Kraus <vivien@planete-kraus.eu> | 2022-01-20 20:11:56 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-01-26 17:54:58 +0100 |
commit | bac9f8302c65802a576f733cc48829edb33019d8 (patch) | |
tree | fc006b0305b91a330d68d92589ce3f1aab9eb6ad /m4 | |
parent | 8b7bd459dc7f86cf2a9569c35efb4a5d845d63ed (diff) | |
download | guix-bac9f8302c65802a576f733cc48829edb33019d8.tar.gz guix-bac9f8302c65802a576f733cc48829edb33019d8.zip |
import: pypi: Convert hyphens to underscores in PyPI URLs if needed.
* guix/import/pypi.scm (find-project-url): New function.
(make-pypi-sexp): Use find-project-url.
* tests/pypi.scm (foo-json): New procedure.
(test-json-1, test-json-2): Define in terms of it.
("find-project-url, with numpy", "find-project-url, uWSGI"):
("find-project-url, flake8-array-spacing")
("find-project-url, foo/goo"): New tests.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions