summaryrefslogtreecommitdiff
path: root/guix/import
diff options
context:
space:
mode:
Diffstat (limited to 'guix/import')
-rw-r--r--guix/import/pypi.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index e2314820d0..d5035b790b 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -419,7 +419,7 @@ return the unaltered list of upstream dependency names."
"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))))
'()))
@@ -533,9 +533,12 @@ VERSION, SOURCE-URL, HOME-PAGE, SYNOPSIS, DESCRIPTION, and LICENSE."
(url (distribution-url
(latest-source-release pypi-package))))
(upstream-source
+ (urls (list url))
+ (input-changes
+ (changed-inputs package
+ (pypi->guix-package pypi-name)))
(package (package-name package))
- (version version)
- (urls (list url))))))))
+ (version version)))))))
(define %pypi-updater
(upstream-updater