guix-play/guix/scripts
Ludovic Courtès e6223017d9
upstream: Replace 'input-changes' field by 'inputs'.
Returning the expected list of inputs rather than changes relative to
the current package definition is less ambiguous and offers more
possibilities for further processing.

* guix/upstream.scm (<upstream-source>)[input-changes]: Remove.
[inputs]: New field.
(<upstream-input>): New record type.
* guix/upstream.scm (upstream-input-type-predicate)
(input-type-filter, upstream-source-regular-inputs)
(upstream-source-native-inputs, upstream-source-propagated-inputs): New
procedures.
(changed-inputs): Expect an <upstream-source> as its second argument.
Adjust accordingly.
* guix/import/pypi.scm (distribution-sha256): New procedure.
(maybe-inputs): Expect a list of <upstream-input>.
(compute-inputs): Rewrite to return a list of <upstream-input>.
(pypi-package-inputs, pypi-package->upstream-source): New procedures.
(make-pypi-sexp): Use it.
* guix/import/stackage.scm (latest-lts-release): Define 'cabal'.
Replace 'input-changes' field by 'inputs'.
* guix/scripts/refresh.scm (update-package): Use 'changed-inputs'
instead of 'upstream-source-input-changes'.
* tests/cran.scm ("description->package"): Adjust order of inputs.
* tests/pypi.scm (default-sha256, default-sha256/base32): New variables.
(foo-json): Add 'digests' entry.
("pypi->guix-package, no wheel"): Check HASH against DEFAULT-SHA256/BASE32.
("pypi->guix-package, wheels"): Likewise.
("pypi->guix-package, no usable requirement file."): Likewise.
("pypi->guix-package, package name contains \"-\" followed by digits"):
Likewise.
("package-latest-release"): New test.
* tests/upstream.scm (test-package-sexp): Remove.
("changed-inputs returns no changes"): Rewrite to use <upstream-source>.
(test-new-package-sexp): Remove.
("changed-inputs returns changes to plain input list"): Rewrite.
("changed-inputs returns changes to all plain input lists"): Likewise.
("changed-inputs returns changes to labelled input list")
("changed-inputs returns changes to all labelled input lists"): Remove.
* guix/import/cran.scm (maybe-inputs): Expect PACKAGE-INPUTS to be a
list of <upstream-input>.
(source-dir->dependencies): Return a list of <upstream-input>.
(vignette-builders): Likewise.
(uri-helper, cran-package-source-url)
(cran-package-propagated-inputs, cran-package-inputs): New procedures.
(description->package): Use them instead of local definitions.
(latest-cran-release): Replace 'input-changes' field by 'inputs'.
(latest-bioconductor-release): Likewise.
(format-inputs): Remove.
* guix/import/hackage.scm (cabal-package-inputs): New procedure.
(hackage-module->sexp): Use it.
[maybe-inputs]: Expect a list of <upstream-input>.
2023-05-31 23:25:24 +02:00
..
container container: Correctly report exit status. 2023-01-30 22:24:27 +01:00
git Add 'guix git authenticate'. 2020-07-11 12:33:01 +02:00
home ui: 'display-hint' quotes extra arguments for Texinfo. 2023-02-27 23:40:43 +01:00
import scripts: import: elpa: Return consistent error code. 2023-05-17 22:22:22 +02:00
system Merge remote-tracking branch 'savannah/master' into core-updates 2023-03-02 10:55:08 +00:00
archive.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
authenticate.scm authenticate: Encode strings as ISO-8859-1. 2020-09-15 14:40:20 +02:00
build.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
challenge.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
container.scm scripts: Use 'define-command' and have 'guix help' use that. 2020-09-10 12:27:24 +02:00
copy.scm scripts: Commands warn when passed zero arguments. 2021-05-28 11:36:02 +02:00
deploy.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
describe.scm ui: 'display-hint' quotes extra arguments for Texinfo. 2023-02-27 23:40:43 +01:00
discover.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
download.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
edit.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
environment.scm environment: Really auto-load (guix scripts pack). 2023-04-19 20:12:19 -04:00
gc.scm guix gc: Round MiBs in user feedback. 2023-05-31 22:45:35 +02:00
git.scm scripts: Use 'define-command' and have 'guix help' use that. 2020-09-10 12:27:24 +02:00
graph.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
hash.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
home.scm Merge remote-tracking branch 'origin/master' into core-updates 2023-03-20 18:49:06 +01:00
import.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
install.scm transformations: Show '--help-transform' only where applicable. 2020-11-21 12:39:14 +01:00
lint.scm lint: Add '-e'. 2022-08-08 11:22:31 +02:00
offload.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
pack.scm pack: "fakechroot" engine passes the recursive RUNPATH to ld.so. 2023-03-17 23:20:35 +01:00
package.scm Merge remote-tracking branch 'origin/master' into core-updates 2023-03-20 18:49:06 +01:00
perform-download.scm download: Use Disarchive as a last resort. 2021-04-29 11:24:48 -04:00
processes.scm processes: Add '--format' and the "normalized" format. 2020-11-29 23:55:57 +01:00
publish.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
pull.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
refresh.scm upstream: Replace 'input-changes' field by 'inputs'. 2023-05-31 23:25:24 +02:00
remove.scm scripts: Use 'define-command' and have 'guix help' use that. 2020-09-10 12:27:24 +02:00
repl.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
search.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
shell.scm environment: Add '--nesting'. 2023-04-06 18:34:15 +02:00
show.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
size.scm Remove now unnecessary uses of (guix grafts). 2022-10-22 01:46:55 +02:00
style.scm style: Add 'arguments' styling rule. 2023-05-18 20:01:32 +02:00
substitute.scm substitute: If a server's nar URL is 404, try the next one(s). 2023-05-30 00:15:29 +02:00
system.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
time-machine.scm guix: Strip #:use-module lists. 2023-03-13 15:08:33 +01:00
upgrade.scm upgrade: Allow several regexps. 2020-12-01 11:34:10 +01:00
weather.scm Remove now unnecessary uses of (guix grafts). 2022-10-22 01:46:55 +02:00