[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51108] [PATCH] import: pypi: Support 'input-changes'.
From: |
Xinglu Chen |
Subject: |
[bug#51108] [PATCH] import: pypi: Support 'input-changes'. |
Date: |
Sat, 09 Oct 2021 12:21:15 +0200 |
* guix/import/pypi.scm (latest-release): Specify the ‘input-changes’ field.
---
guix/import/pypi.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index b7859c8341..52835cf44d 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -532,7 +532,8 @@ (define pypi-package?
(define (latest-release package)
"Return an <upstream-source> for the latest release of PACKAGE."
(let* ((pypi-name (guix-package->pypi-name package))
- (pypi-package (pypi-fetch pypi-name)))
+ (pypi-package (pypi-fetch pypi-name))
+ (name (package-name package)))
(and pypi-package
(guard (c ((missing-source-error? c) #f))
(let* ((info (pypi-project-info pypi-package))
@@ -540,9 +541,12 @@ (define (latest-release package)
(url (distribution-url
(latest-source-release pypi-package))))
(upstream-source
- (package (package-name package))
+ (package name)
(version version)
- (urls (list url))))))))
+ (urls (list url))
+ (input-changes
+ (changed-inputs name
+ (pypi->guix-package pypi-name)))))))))
(define %pypi-updater
(upstream-updater
base-commit: fd8ea9abf5b4ded096b7ccadb5e36fde4bac0867
--
2.33.0
- [bug#51108] [PATCH] import: pypi: Support 'input-changes'.,
Xinglu Chen <=