gnu: Add rust-psl-2.

* gnu/packages/crates-io.scm (rust-psl-2): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
phodina 2021-11-09 16:59:38 +00:00 committed by Nicolas Goaziou
parent 6d5295acb8
commit 492bec66a8
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -38891,6 +38891,37 @@ (define-public rust-proptest-derive-0.1
trait of proptest.")
(license (list license:expat license:asl2.0))))
(define-public rust-psl-2
(package
(name "rust-psl")
(version "2.0.48")
(source
(origin
(method url-fetch)
(uri (crate-uri "psl" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"0a2d3z6gi7bwsi4xr6m3kq44wxyr81yqr5z76afv8kfxsc8p1nxh"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-psl-types" ,rust-psl-types-2))
#:cargo-development-inputs
(("rust-rspec", rust-rspec-1))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-version-requirements
(lambda _
(substitute* "Cargo.toml"
(("1.0.0") ,(package-version rust-rspec-1))))))))
(home-page "https://github.com/addr-rs/psl")
(synopsis "Extract root domain and suffix")
(description "This package extracts root domain and suffix from a domain
name.")
(license (list license:expat license:asl2.0))))
(define-public rust-psl-types-2
(package
(name "rust-psl-types")