From d9589e4482689784b2d9d4080eeff00609069ce8 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 4 Dec 2024 10:37:53 +0200 Subject: [PATCH] gnu: rust-crypto-mac-0.4: Mark package as deprecated. * gnu/packages/crates-crypto.scm (rust-crypto-mac-0.4): Rename to rust-crypto-mac-0.4.0-yanked. [source]: Add 'yanked' to the source file-name. (rust-crypto-mac-0.4): New deprecated package pointing to rust-crypto-mac-0.4.0-yanked. Change-Id: Iabbb3e7cab1aa3d65534bcc5b7acfad8571227ef --- gnu/packages/crates-crypto.scm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index ac401c5ffb..b0d4356966 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1739,22 +1739,28 @@ (define-public rust-crypto-mac-0.7 ("rust-generic-array" ,rust-generic-array-0.12) ("rust-subtle" ,rust-subtle-1)))))) -(define-public rust-crypto-mac-0.4 +(define-public rust-crypto-mac-0.4.0-yanked (package (inherit rust-crypto-mac-0.11) (name "rust-crypto-mac") - (version "0.4.0") + (version "0.4.0") ; This version was yanked! (source (origin (method url-fetch) (uri (crate-uri "crypto-mac" version)) - (file-name (string-append name "-" version ".tar.gz")) + (file-name (string-append name "-" version "-yanked.tar.gz")) (sha256 (base32 "160ixpghhz5kz16f38kzcyv6lx8wmi4cgbhlhq4nazf678iib43p")))) (arguments `(#:cargo-inputs (("rust-constant-time-eq" ,rust-constant-time-eq-0.1) - ("rust-generic-array" ,rust-generic-array-0.8)))))) + ("rust-generic-array" ,rust-generic-array-0.8)))) + (properties '((crate-version-yanked? . #t))))) + +(define-public rust-crypto-mac-0.4 + ;; There are no non-yanked versions of this semver. + (deprecated-package "rust-crypto-mac" rust-crypto-mac-0.4.0-yanked)) + (define-public rust-crypto-tests-0.5 (package