import: pypi: Correctly handle new-style URLs.
authorLudovic Courtès <ludo@gnu.org>
Tue, 26 Jul 2016 15:49:34 +0000 (17:49 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 26 Jul 2016 15:49:34 +0000 (17:49 +0200)
commit8173ceee1f31ab562118ff5171254a4b73b71400
treeeba237bd3f70991c87996dcc24ed998f5d333b58
parentdebc6360e111e8efc8a938b2aef28e5b3616ada8
import: pypi: Correctly handle new-style URLs.

Fixes <http://bugs.gnu.org/23997>.

* guix/import/pypi.scm (guix-package->pypi-name): Rewrite using
'basename' and 'hyphen-package-name->name+version'.
* tests/pypi.scm ("guix-package->pypi-name, old URL style")
("guix-package->pypi-name, new URL style"): New tests.
guix/import/pypi.scm
tests/pypi.scm