import: utils: Trim patch version from names.
authorHartmut Goebel <h.goebel@crazy-compilers.com>
Sat, 14 Nov 2020 18:47:32 +0000 (19:47 +0100)
committerHartmut Goebel <h.goebel@crazy-compilers.com>
Wed, 2 Dec 2020 21:09:23 +0000 (22:09 +0100)
commit9a48e35be853e10ba9b21bb91ef52a66b4264c84
tree3aac9ceebe68a5f47a9ddf7fe5fec6da88701fdf
parent50fbb3f032b46a565ca225daddf4eeb7c8edfab4
import: utils: Trim patch version from names.

This remove the patch version from generated package names. For example
'rust-my-crate-1.1.2' now becomes 'rust-my-crate-1.1'.

* guix/import/utils.scm (package->definition): Trim patch version from
  generated package names.
* tests/crate.scm: (cargo>guix-package, cargo-recursive-import): Likewise.
guix/import/crate.scm
guix/import/utils.scm
tests/crate.scm