diff options
| author | jgart <jgart@dismail.de> | 2026-02-20 23:20:57 -0500 |
|---|---|---|
| committer | jgart <jgart@dismail.de> | 2026-03-08 11:04:33 -0400 |
| commit | f2ead3989e93a78fbcfa1788074742b71aec3319 (patch) | |
| tree | 153c10191edd978d819ad6091f6554ff351daf4f | |
| parent | 01ff86a9bb2ac99232845ea70c91adbf117236d3 (diff) | |
guix: import: cpan: Fill in description field in template.
* guix/import/cpan.scm (cpan-module->sexp): Fill in description field in
template.
* tests/import/cpan.scm (test-source): Update test to account for change in
description text.
Change-Id: I3bc3e4c2cc90f7a1f1f0d56e9213b6a1d0b8e841
Signed-off-by: jgart <jgart@dismail.de>
| -rw-r--r-- | guix/import/cpan.scm | 5 | ||||
| -rw-r--r-- | tests/import/cpan.scm | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/guix/import/cpan.scm b/guix/import/cpan.scm index bc5dfd18479..3d4508b11e6 100644 --- a/guix/import/cpan.scm +++ b/guix/import/cpan.scm | |||
| @@ -287,6 +287,7 @@ in RELEASE, a <cpan-release> record." | |||
| 287 | (let* ((tarball (with-store store | 287 | (let* ((tarball (with-store store |
| 288 | (download-to-store store source-url))) | 288 | (download-to-store store source-url))) |
| 289 | (inputs (cpan-module-inputs release)) | 289 | (inputs (cpan-module-inputs release)) |
| 290 | (synopsis-text (cpan-release-abstract release)) | ||
| 290 | (sexp | 291 | (sexp |
| 291 | `(package | 292 | `(package |
| 292 | (name ,(cpan-name->downstream-name name)) | 293 | (name ,(cpan-name->downstream-name name)) |
| @@ -305,8 +306,8 @@ in RELEASE, a <cpan-release> record." | |||
| 305 | (filter (upstream-input-type-predicate 'propagated) | 306 | (filter (upstream-input-type-predicate 'propagated) |
| 306 | inputs)) | 307 | inputs)) |
| 307 | (home-page ,(cpan-home name)) | 308 | (home-page ,(cpan-home name)) |
| 308 | (synopsis ,(cpan-release-abstract release)) | 309 | (synopsis ,synopsis-text) |
| 309 | (description fill-in-yourself!) | 310 | (description ,(string-append synopsis-text ".")) |
| 310 | (license ,(string->license (cpan-release-license release)))))) | 311 | (license ,(string->license (cpan-release-license release)))))) |
| 311 | (values sexp (map upstream-input-name inputs)))) | 312 | (values sexp (map upstream-input-name inputs)))) |
| 312 | 313 | ||
diff --git a/tests/import/cpan.scm b/tests/import/cpan.scm index 42e8c4e42c1..aec66122fb1 100644 --- a/tests/import/cpan.scm +++ b/tests/import/cpan.scm | |||
| @@ -86,7 +86,7 @@ | |||
| 86 | (propagated-inputs (list perl-test-script)) | 86 | (propagated-inputs (list perl-test-script)) |
| 87 | (home-page "https://metacpan.org/release/Foo-Bar") | 87 | (home-page "https://metacpan.org/release/Foo-Bar") |
| 88 | (synopsis "Fizzle Fuzz") | 88 | (synopsis "Fizzle Fuzz") |
| 89 | (description fill-in-yourself!) | 89 | (description "Fizzle Fuzz.") |
| 90 | (license perl-license)) | 90 | (license perl-license)) |
| 91 | (string=? (bytevector->nix-base32-string | 91 | (string=? (bytevector->nix-base32-string |
| 92 | (call-with-input-string test-source port-sha256)) | 92 | (call-with-input-string test-source port-sha256)) |
