gnu: Add rust-k9-0.12.0.

* gnu/packages/crates-io.scm (rust-k9-0.12): New variable.
(rust-k9-0.11): Inherit from rust-k9-0.12.

Change-Id: I67f9d7a9abb6fe0afd2cd43fc6eff995a37b5634
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
VÖRÖSKŐI András 2024-02-24 21:39:16 +01:00 committed by Efraim Flashner
parent 775d9a3b2c
commit 690f993a40
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -34893,8 +34893,47 @@ (define-public rust-kv-log-macro-1
"This package provides a Log macro for log's kv-unstable backend.")
(license (list license:expat license:asl2.0))))
(define-public rust-k9-0.12
(package
(name "rust-k9")
(version "0.12.0")
(source (origin
(method url-fetch)
(uri (crate-uri "k9" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"056ngrvyla95qj737h7xjw5ja697h07mpw6pci5v3cb8bfxwx2q8"))
(snippet
#~(begin (use-modules (guix build utils))
(substitute* "Cargo.toml"
;; k9@0.11.7 was yanked by upstream, provide 0.11.6.
(("0\\.11\\.7") "0.11.6"))))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
("rust-colored" ,rust-colored-2)
("rust-diff" ,rust-diff-0.1)
("rust-lazy-static" ,rust-lazy-static-1)
("rust-libc" ,rust-libc-0.2)
("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-regex" ,rust-regex-1)
("rust-syn" ,rust-syn-2)
("rust-terminal-size" ,rust-terminal-size-0.2))
#:cargo-development-inputs
(("rust-derive-builder" ,rust-derive-builder-0.9)
("rust-k9" ,rust-k9-0.11)
("rust-rand" ,rust-rand-0.7)
("rust-sha2" ,rust-sha2-0.9)
("rust-strip-ansi-escapes" ,rust-strip-ansi-escapes-0.1))))
(home-page "https://github.com/aaronabramov/k9")
(synopsis "Testing library")
(description "This package contains helper macros for writing unit tests.")
(license license:expat)))
(define-public rust-k9-0.11
(package
(inherit rust-k9-0.12)
(name "rust-k9")
(version "0.11.6")
(source (origin
@ -34904,7 +34943,6 @@ (define-public rust-k9-0.11
(sha256
(base32
"1a8pxz6fygqzknxdlb4l835kqxgjk7snm4bjhhhn783r025vbp9j"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
@ -34915,12 +34953,7 @@ (define-public rust-k9-0.11
("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-regex" ,rust-regex-1)
("rust-syn" ,rust-syn-1)
("rust-term-size" ,rust-term-size-0.3))))
(home-page "https://github.com/aaronabramov/k9")
(synopsis "Testing library")
(description
"This package contains helper macros for writing unit tests.")
(license license:expat)))
("rust-term-size" ,rust-term-size-0.3))))))
(define-public rust-language-tags-0.3
(package