gnu: rust-time-0.1: Don't skip the build.

* gnu/packages/crates-io.scm (rust-time-0.1)[source]: Add snippet to
allow newer versions of dependencies.
[arguments]: Don't skip the build.  Add cargo-test-flags.

Change-Id: Iaff90a0097de00d91b7058cf54b0cca1281b3eb0
This commit is contained in:
Efraim Flashner 2024-01-28 21:40:23 +02:00
parent 77d49c4df1
commit 062999292d
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -67544,10 +67544,22 @@ interoperable with the standard library, and is mostly compatible with
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"0nl0pzv9yf56djy8y5dx25nka5pr2q1ivlandb3d24pksgx7ly8v"))))
"0nl0pzv9yf56djy8y5dx25nka5pr2q1ivlandb3d24pksgx7ly8v"))
(snippet
#~(begin (use-modules (guix build utils))
(substitute* "Cargo.toml"
(("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
(string-append "\"^" version)))))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
`(#:cargo-test-flags
'("--release" "--"
"--skip=tests::test_asctime"
"--skip=tests::test_at"
"--skip=tests::test_ctime"
"--skip=tests::test_dst"
"--skip=tests::test_strftime")
#:cargo-inputs
(("rust-libc" ,rust-libc-0.2)
("rust-rustc-serialize" ,rust-rustc-serialize-0.3)