Subject: [bug#50368] [PATCH 5/9] gnu: rust-deflate: Update to 0.9.1.

From: Xinglu Chen <[email-masked]>
Date: Sat, 04 Sep 2021 21:21:22 +0200

On Sat, Sep 04 2021, phodina via Guix-patches via wrote:

> * gnu/packages/crates-io.scm (rust-deflate): Update to 0.9.1.
> [cargo-inputs]: Remove rust-byteorder-1.

I suggest

  * gnu/packages/crates-io.scm (rust-deflate-0.9): New variable.
  (rust-deflate-0.8): Inherit from ‘rust-deflate-0.9’.
  (rust-deflate-0.7): Likewise.
  
> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
> index 3df14a1d6d..e0b36cef51 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -12611,10 +12611,10 @@ type.")
>  thread.")
>      (license license:mpl2.0)))
>
> -(define-public rust-deflate-0.8
> +(define-public rust-deflate-0.9
>    (package
>      (name "rust-deflate")
> -    (version "0.8.6")
> +    (version "0.9.1")
>      (source
>        (origin
>          (method url-fetch)
> @@ -12623,13 +12623,12 @@ thread.")
>           (string-append name "-" version ".tar.gz"))
>          (sha256
>           (base32
> -          "0x6iqlayg129w63999kz97m279m0jj4x4sm6gkqlvmp73y70yxvk"))))
> +          "0w0ww0hrq4bjnihxgbnrri4lj5c8yzg31fyzx36fd9pvvw2vz5az"))))
>      (build-system cargo-build-system)
>      (arguments
>       `(#:tests? #f      ; not all test files included
>         #:cargo-inputs
>         (("rust-adler32" ,rust-adler32-1)
> -        ("rust-byteorder" ,rust-byteorder-1)
>          ("rust-gzip-header" ,rust-gzip-header-0.3))
>         #:cargo-development-inputs
>         (("rust-miniz-oxide" ,rust-miniz-oxide-0.3))))
> @@ -12639,9 +12638,32 @@ thread.")
>       "This package provides a DEFLATE, zlib and gzip encoder written in rust.")
>      (license (list license:expat license:asl2.0))))
>
> +(define-public rust-deflate-0.8
> +  (package
> +    (inherit rust-deflate-0.9)
> +    (name "rust-deflate")
> +    (version "0.8.6")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (crate-uri "deflate" version))
> +        (file-name
> +          (string-append name "-" version ".tar.gz"))
> +        (sha256
> +         (base32
> +          "0x6iqlayg129w63999kz97m279m0jj4x4sm6gkqlvmp73y70yxvk"))))
> +    (arguments
> +     `(#:tests? #f      ; not all test files included
> +       #:cargo-inputs
> +         (("rust-adler32" ,rust-adler32-1)
> +          ("rust-byteorder" ,rust-byteorder-1)
> +          ("rust-gzip-header" ,rust-gzip-header-0.3))
> +       #:cargo-development-inputs
> +         (("rust-miniz-oxide" ,rust-miniz-oxide-0.3))))))
> +
>  (define-public rust-deflate-0.7
>    (package
> -    (inherit rust-deflate-0.8)
> +    (inherit rust-deflate-0.9)
>      (name "rust-deflate")
>      (version "0.7.20")
>      (source
> --
> 2.32.0