From 882e9dfa104e1fec92efd5d4b1ce16f60ad02587 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 4 Dec 2024 10:33:27 +0200 Subject: [PATCH] gnu: rust-block-cipher-trait-0.4: Mark as deprecated. * gnu/packages/crates-crypto.scm (rust-block-cipher-trait-0.4): Rename to rust-block-cipher-trait-0.4.2-yanked. [source]: Add 'yanked' to the source file-name. (rust-block-cipher-trait-0.4): New deprecated package pointing to rust-block-cipher-trait-0.4.2-yanked. Change-Id: I47fb9699b572920ef72c6c187ef953d6b43500c5 --- 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 e048fb3642..8f08c92868 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -898,22 +898,28 @@ (define-public rust-block-cipher-trait-0.6 algorithms. This package is deprecated. Please use block-cipher instead.") (license (list license:expat license:asl2.0)))) -(define-public rust-block-cipher-trait-0.4 +(define-public rust-block-cipher-trait-0.4.2-yanked (package (inherit rust-block-cipher-trait-0.6) (name "rust-block-cipher-trait") - (version "0.4.2") + (version "0.4.2") ; This version was yanked! (source (origin (method url-fetch) (uri (crate-uri "block-cipher-trait" version)) - (file-name (string-append name "-" version ".tar.gz")) + (file-name (string-append name "-" version "-yanked.tar.gz")) (sha256 (base32 "10qmg8vphqmfllb9a2yx6s7r66jh1wh33clhsawq7ikg2wgz2p6q")))) (arguments `(#:cargo-inputs - (("rust-generic-array" ,rust-generic-array-0.8)))))) + (("rust-generic-array" ,rust-generic-array-0.8)))) + (properties '((crate-version-yanked? . #t))))) + +(define-public rust-block-cipher-trait-0.4 + ;; There are no non-yanked versions of this semver. + (deprecated-package "rust-block-cipher-trait" + rust-block-cipher-trait-0.4.2-yanked)) (define-public rust-block-modes-0.8 (package