import: pypi: Remove leftover 'pk' call.

This is a followup to 7b75f90c5b.

* guix/import/pypi.scm (make-pypi-sexp)[maybe-upstream-name]: Remove
leftover 'pk' call.
This commit is contained in:
Ludovic Courtès 2021-10-15 23:05:16 +02:00
parent 50d2900e76
commit 7770016402
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -426,7 +426,7 @@ (define (make-pypi-sexp name version source-url wheel-url home-page synopsis
"Return the `package' s-expression for a python package with the given NAME,
VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and LICENSE."
(define (maybe-upstream-name name)
(if (string-match ".*\\-[0-9]+" (pk name))
(if (string-match ".*\\-[0-9]+" name)
`((properties ,`'(("upstream-name" . ,name))))
'()))