diff --git a/gnu/packages/crates-audio.scm b/gnu/packages/crates-audio.scm index ab351ebe2e..2b8e7d124b 100644 --- a/gnu/packages/crates-audio.scm +++ b/gnu/packages/crates-audio.scm @@ -27,6 +27,7 @@ (define-module (gnu packages crates-audio) #:use-module (gnu packages) #:use-module (gnu packages audio) #:use-module (gnu packages crates-apple) + #:use-module (gnu packages crates-check) #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-graphics) #:use-module (gnu packages crates-gtk) diff --git a/gnu/packages/crates-check.scm b/gnu/packages/crates-check.scm index e7ff935c8b..50e92f3cdd 100644 --- a/gnu/packages/crates-check.scm +++ b/gnu/packages/crates-check.scm @@ -1,4 +1,9 @@ ;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 John Soo +;;; Copyright © 2020 Efraim Flashner +;;; Copyright © 2020 Valentin Ignatev +;;; Copyright © 2021 Nicolas Goaziou +;;; Copyright © 2022 Aleksandr Vityazev ;;; Copyright © 2024 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. @@ -76,6 +81,236 @@ (define-public rust-mark-flaky-tests-macro-1 (proc-macro crate).") (license (list license:expat license:asl2.0)))) +(define-public rust-quickcheck-1 + (package + (name "rust-quickcheck") + (version "1.0.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1mjhkfqwrb8mdyxdqr4zzbj1rm5dfx25n9zcc25lb6fxwiw673sq")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-env-logger" ,rust-env-logger-0.8) + ("rust-log" ,rust-log-0.4) + ("rust-rand" ,rust-rand-0.8)))) + (home-page "https://github.com/BurntSushi/quickcheck") + (synopsis "Automatic property based testing with shrinking") + (description + "QuickCheck is a way to do property based testing using randomly generated +input. This crate comes with the ability to randomly generate and shrink +integers, floats, tuples, booleans, lists, strings, options and results.") + (license (list license:unlicense license:expat)))) + +(define-public rust-quickcheck-0.9 + (package + (inherit rust-quickcheck-1) + (name "rust-quickcheck") + (version "0.9.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0pwl7j21wmf843kpa9gr0byb40hg975ghjrwp0yxcym99bkq6j54")))) + (arguments + `(#:cargo-inputs + (("rust-env-logger" ,rust-env-logger-0.7) + ("rust-log" ,rust-log-0.4) + ("rust-rand" ,rust-rand-0.7) + ("rust-rand-core" ,rust-rand-core-0.5)))))) + +(define-public rust-quickcheck-0.8 + (package + (inherit rust-quickcheck-0.9) + (name "rust-quickcheck") + (version "0.8.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0mkl4wnvvjk4m32aq3an4ayfyvnmbxnzcybfm7n3fbsndb1xjdcw")))) + (arguments + `(#:cargo-inputs + (("rust-env-logger" ,rust-env-logger-0.6) + ("rust-log" ,rust-log-0.4) + ("rust-rand" ,rust-rand-0.6) + ("rust-rand-core" ,rust-rand-core-0.4)))))) + +(define-public rust-quickcheck-0.7 + (package + (inherit rust-quickcheck-0.9) + (name "rust-quickcheck") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "05pqzja6fwdyrs1za5vmxb9ifb993knmpdsrs1fs2wyz9qz7slyl")))) + (arguments + `(#:cargo-inputs + (("rust-env-logger" ,rust-env-logger-0.5) + ("rust-log" ,rust-log-0.4) + ("rust-rand" ,rust-rand-0.5) + ("rust-rand-core" ,rust-rand-core-0.2)))))) + +(define-public rust-quickcheck-0.6 + (package + (inherit rust-quickcheck-0.9) + (name "rust-quickcheck") + (version "0.6.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1dyazm2fcq0v9fscq1a7597zsvdl9f0j8c2bfj1jm2nlzz2sn6y0")))) + (arguments + `(#:cargo-inputs + (("rust-env-logger" ,rust-env-logger-0.5) + ("rust-log" ,rust-log-0.4) + ("rust-rand" ,rust-rand-0.4)))))) + +(define-public rust-quickcheck-0.5 + (package + (inherit rust-quickcheck-0.9) + (name "rust-quickcheck") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1jzm1ygfbn4igaq14b9nipc8yvsn6c8panpgd1qiy5r2insjllyd")))) + (arguments + `(#:cargo-inputs + (("rust-env-logger" ,rust-env-logger-0.4) + ("rust-log" ,rust-log-0.3) + ("rust-rand" ,rust-rand-0.3)))))) + +(define-public rust-quickcheck-0.4 + (package + (inherit rust-quickcheck-0.5) + (name "rust-quickcheck") + (version "0.4.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "01hligcv1h4pvc8ykch65qjzi7jgcq2s462v69j27slc84fl3hh2")))) + (arguments + `(#:cargo-inputs + (("rust-env-logger" ,rust-env-logger-0.3) + ("rust-log" ,rust-log-0.3) + ("rust-rand" ,rust-rand-0.3)))))) + +(define-public rust-quickcheck-0.2 + (package + (inherit rust-quickcheck-0.4) + (name "rust-quickcheck") + (version "0.2.27") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1vb4acppaavlnchzc1jmn5wlkgir9x9gmhgp97bavyxxqxgsg1nh")))))) + +(define-public rust-quickcheck-macros-1 + (package + (name "rust-quickcheck-macros") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck_macros" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1s8nh0fmmzq3fd7928qcp2syvymlyv1pmww6fxcaj5np48r6jamj")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://github.com/BurntSushi/quickcheck") + (synopsis "Macro attribute for quickcheck") + (description + "This package provides a macro attribute for quickcheck.") + (license (list license:unlicense license:expat)))) + +(define-public rust-quickcheck-macros-0.9 + (package + (inherit rust-quickcheck-macros-1) + (name "rust-quickcheck-macros") + (version "0.9.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck_macros" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0zsb9b4jpg7qvbiym4v8y9pgqk7p1g4f5hn9gp0fnzz9v1pib330")))) + (arguments + `(#:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)) + #:cargo-development-inputs + (("rust-quickcheck" ,rust-quickcheck-0.9)))))) + +(define-public rust-quickcheck-macros-0.8 + (package + (inherit rust-quickcheck-macros-0.9) + (name "rust-quickcheck-macros") + (version "0.8.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "quickcheck_macros" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0b3mhn0xcrdd3fkbkx3rghhivwzwil8w991ngp6gaj70l72c3pyp")))) + (arguments + `(#:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-0.4) + ("rust-quote" ,rust-quote-0.6) + ("rust-syn" ,rust-syn-0.15)) + #:cargo-development-inputs + (("rust-quickcheck" ,rust-quickcheck-0.8)))))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 93a8fbcde2..69190be065 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -47,6 +47,7 @@ (define-module (gnu packages crates-crypto) #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (gnu packages crates-apple) + #:use-module (gnu packages crates-check) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-tls) #:use-module (gnu packages crates-windows) diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 754bd37394..38c864060a 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -43,6 +43,7 @@ (define-module (gnu packages crates-graphics) #:use-module (gnu packages assembly) #:use-module (gnu packages compression) #:use-module (gnu packages crates-apple) + #:use-module (gnu packages crates-check) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-web) #:use-module (gnu packages crates-windows) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 2ac7283660..5abbe41471 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -65213,236 +65213,6 @@ (define-public rust-quick-xml-0.19 ("rust-memchr" ,rust-memchr-2) ("rust-serde" ,rust-serde-1)))))) -(define-public rust-quickcheck-1 - (package - (name "rust-quickcheck") - (version "1.0.3") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1mjhkfqwrb8mdyxdqr4zzbj1rm5dfx25n9zcc25lb6fxwiw673sq")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-env-logger" ,rust-env-logger-0.8) - ("rust-log" ,rust-log-0.4) - ("rust-rand" ,rust-rand-0.8)))) - (home-page "https://github.com/BurntSushi/quickcheck") - (synopsis "Automatic property based testing with shrinking") - (description - "QuickCheck is a way to do property based testing using randomly generated -input. This crate comes with the ability to randomly generate and shrink -integers, floats, tuples, booleans, lists, strings, options and results.") - (license (list license:unlicense license:expat)))) - -(define-public rust-quickcheck-0.9 - (package - (inherit rust-quickcheck-1) - (name "rust-quickcheck") - (version "0.9.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0pwl7j21wmf843kpa9gr0byb40hg975ghjrwp0yxcym99bkq6j54")))) - (arguments - `(#:cargo-inputs - (("rust-env-logger" ,rust-env-logger-0.7) - ("rust-log" ,rust-log-0.4) - ("rust-rand" ,rust-rand-0.7) - ("rust-rand-core" ,rust-rand-core-0.5)))))) - -(define-public rust-quickcheck-0.8 - (package - (inherit rust-quickcheck-0.9) - (name "rust-quickcheck") - (version "0.8.5") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0mkl4wnvvjk4m32aq3an4ayfyvnmbxnzcybfm7n3fbsndb1xjdcw")))) - (arguments - `(#:cargo-inputs - (("rust-env-logger" ,rust-env-logger-0.6) - ("rust-log" ,rust-log-0.4) - ("rust-rand" ,rust-rand-0.6) - ("rust-rand-core" ,rust-rand-core-0.4)))))) - -(define-public rust-quickcheck-0.7 - (package - (inherit rust-quickcheck-0.9) - (name "rust-quickcheck") - (version "0.7.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "05pqzja6fwdyrs1za5vmxb9ifb993knmpdsrs1fs2wyz9qz7slyl")))) - (arguments - `(#:cargo-inputs - (("rust-env-logger" ,rust-env-logger-0.5) - ("rust-log" ,rust-log-0.4) - ("rust-rand" ,rust-rand-0.5) - ("rust-rand-core" ,rust-rand-core-0.2)))))) - -(define-public rust-quickcheck-0.6 - (package - (inherit rust-quickcheck-0.9) - (name "rust-quickcheck") - (version "0.6.2") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1dyazm2fcq0v9fscq1a7597zsvdl9f0j8c2bfj1jm2nlzz2sn6y0")))) - (arguments - `(#:cargo-inputs - (("rust-env-logger" ,rust-env-logger-0.5) - ("rust-log" ,rust-log-0.4) - ("rust-rand" ,rust-rand-0.4)))))) - -(define-public rust-quickcheck-0.5 - (package - (inherit rust-quickcheck-0.9) - (name "rust-quickcheck") - (version "0.5.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1jzm1ygfbn4igaq14b9nipc8yvsn6c8panpgd1qiy5r2insjllyd")))) - (arguments - `(#:cargo-inputs - (("rust-env-logger" ,rust-env-logger-0.4) - ("rust-log" ,rust-log-0.3) - ("rust-rand" ,rust-rand-0.3)))))) - -(define-public rust-quickcheck-0.4 - (package - (inherit rust-quickcheck-0.5) - (name "rust-quickcheck") - (version "0.4.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "01hligcv1h4pvc8ykch65qjzi7jgcq2s462v69j27slc84fl3hh2")))) - (arguments - `(#:cargo-inputs - (("rust-env-logger" ,rust-env-logger-0.3) - ("rust-log" ,rust-log-0.3) - ("rust-rand" ,rust-rand-0.3)))))) - -(define-public rust-quickcheck-0.2 - (package - (inherit rust-quickcheck-0.4) - (name "rust-quickcheck") - (version "0.2.27") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1vb4acppaavlnchzc1jmn5wlkgir9x9gmhgp97bavyxxqxgsg1nh")))))) - -(define-public rust-quickcheck-macros-1 - (package - (name "rust-quickcheck-macros") - (version "1.0.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck_macros" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1s8nh0fmmzq3fd7928qcp2syvymlyv1pmww6fxcaj5np48r6jamj")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1)))) - (home-page "https://github.com/BurntSushi/quickcheck") - (synopsis "Macro attribute for quickcheck") - (description - "This package provides a macro attribute for quickcheck.") - (license (list license:unlicense license:expat)))) - -(define-public rust-quickcheck-macros-0.9 - (package - (inherit rust-quickcheck-macros-1) - (name "rust-quickcheck-macros") - (version "0.9.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck_macros" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0zsb9b4jpg7qvbiym4v8y9pgqk7p1g4f5hn9gp0fnzz9v1pib330")))) - (arguments - `(#:cargo-inputs - (("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1)) - #:cargo-development-inputs - (("rust-quickcheck" ,rust-quickcheck-0.9)))))) - -(define-public rust-quickcheck-macros-0.8 - (package - (inherit rust-quickcheck-macros-0.9) - (name "rust-quickcheck-macros") - (version "0.8.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "quickcheck_macros" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0b3mhn0xcrdd3fkbkx3rghhivwzwil8w991ngp6gaj70l72c3pyp")))) - (arguments - `(#:cargo-inputs - (("rust-proc-macro2" ,rust-proc-macro2-0.4) - ("rust-quote" ,rust-quote-0.6) - ("rust-syn" ,rust-syn-0.15)) - #:cargo-development-inputs - (("rust-quickcheck" ,rust-quickcheck-0.8)))))) - (define-public rust-quickersort-3 (package (name "rust-quickersort") diff --git a/gnu/packages/crates-web.scm b/gnu/packages/crates-web.scm index 0afea60ed8..9dab14a48c 100644 --- a/gnu/packages/crates-web.scm +++ b/gnu/packages/crates-web.scm @@ -36,6 +36,7 @@ (define-module (gnu packages crates-web) #:use-module (gnu packages) #:use-module (gnu packages compression) #:use-module (gnu packages crates-apple) + #:use-module (gnu packages crates-check) #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-gtk) diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 0330d93991..532ae43dac 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -70,6 +70,7 @@ (define-module (gnu packages rust-apps) #:use-module (gnu packages compression) #:use-module (gnu packages crates-apple) #:use-module (gnu packages crates-audio) + #:use-module (gnu packages crates-check) #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-graphics) diff --git a/gnu/packages/sequoia.scm b/gnu/packages/sequoia.scm index 55e837a16c..8afaf63ecb 100644 --- a/gnu/packages/sequoia.scm +++ b/gnu/packages/sequoia.scm @@ -28,6 +28,7 @@ (define-module (gnu packages sequoia) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages base) ; glibc + #:use-module (gnu packages crates-check) #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-tls) diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index f988dad554..49d1d49f24 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -53,6 +53,7 @@ (define-module (gnu packages shells) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages crates-apple) + #:use-module (gnu packages crates-check) #:use-module (gnu packages crates-crypto) #:use-module (gnu packages crates-graphics) #:use-module (gnu packages crates-io) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index bfc9566bd1..1164a0d603 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -77,6 +77,7 @@ (define-module (gnu packages text-editors) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) #:use-module (gnu packages crates-io) + #:use-module (gnu packages crates-check) #:use-module (gnu packages crates-vcs) #:use-module (gnu packages crates-web) #:use-module (gnu packages crates-windows) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 4e6fba41c5..37f2b90133 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -130,6 +130,7 @@ (define-module (gnu packages video) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages crates-check) #:use-module (gnu packages crates-io) #:use-module (gnu packages crates-graphics) #:use-module (gnu packages curl)