[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#52642] [PATCH 33/42] gnu: Add rust-sequoia-openpgp-1.
From: |
Hartmut Goebel |
Subject: |
[bug#52642] [PATCH 33/42] gnu: Add rust-sequoia-openpgp-1. |
Date: |
Sat, 18 Dec 2021 21:49:44 +0100 |
* gnu/packages/sequoia.scm (rust-sequoia-openpgp-1): New variable.
---
gnu/packages/sequoia.scm | 87 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
diff --git a/gnu/packages/sequoia.scm b/gnu/packages/sequoia.scm
index 3757fdd971..dc0e542505 100644
--- a/gnu/packages/sequoia.scm
+++ b/gnu/packages/sequoia.scm
@@ -39,6 +39,93 @@
#:use-module (gnu packages sqlite)
#:use-module (gnu packages tls))
+(define-public rust-sequoia-openpgp-1
+ (package
+ (name "rust-sequoia-openpgp")
+ (version "1.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "sequoia-openpgp" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1mdprsijszkg2j6jk1iq7q1z9yikq598y12m5zbv94fs37xlx3qm"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Remove dependencies on rust-crypto and win32-cng
+ '(let* ((other-crypto-pkgs
+ (list ;; rust-crypto
+ "aes" "block-modes" "block-padding" "blowfish" "cast5"
+ "cipher" "des" "digest" "eax" "ed25519-dalek"
+ "generic-array" "idea" "md-5" "num-bigint-dig" "rand"
+ "ripemd160" "rsa" "sha-1" "sha2" "twofish" "typenum"
+ "x25519-dalek" "p256" "rand_core" "rand_core" "ecdsa"
+ ;; win32-cng
+ "eax" "winapi" "win-crypto-ng" "ed25519-dalek"
+ "num-bigint-dig"))
+ (pkgs-pattern (pk (string-join
+ (list "^\\[dependencies\\.("
+ (string-join other-crypto-pkgs "|")
+ ")\\]")
+ ""))))
+ (substitute* "Cargo.toml"
+ ((pkgs-pattern line name) (string-append "[off." name "]"))
+ (("^crypto-cng =" line) (string-append "# " line))
+ (("^crypto-rust =" line) (string-append "# " line))
+ (("^\\[(target\\.\"cfg\\(windows\\))" line name)
+ (string-append "[off." name)))))))
+ (build-system cargo-build-system)
+ (native-inputs
+ (list clang pkg-config))
+ (inputs
+ (list gmp nettle))
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-backtrace" ,rust-backtrace-0.3)
+ ("rust-base64" ,rust-base64-0.13)
+ ("rust-buffered-reader" ,rust-buffered-reader-1)
+ ("rust-bzip2" ,rust-bzip2-0.4)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-dyn-clone" ,rust-dyn-clone-1)
+ ("rust-flate2" ,rust-flate2-1)
+ ("rust-idna" ,rust-idna-0.2)
+ ("rust-itertools" ,rust-itertools-0.10)
+ ("rust-lalrpop" ,rust-lalrpop-0.19)
+ ("rust-lalrpop-util" ,rust-lalrpop-util-0.19)
+ ("rust-lazy-static" ,rust-lazy-static-1) ;; 1.4.0
+ ("rust-libc" ,rust-libc-0.2) ;; 0.2.66
+ ("rust-memsec" ,rust-memsec-0.6)
+ ("rust-nettle" ,rust-nettle-7)
+ ("rust-plotters" ,rust-plotters-0.3)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-regex-syntax" ,rust-regex-syntax-0.6)
+ ("rust-sha1collisiondetection" ,rust-sha1collisiondetection-0.2)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-unicode-normalization" ,rust-unicode-normalization-0.1)
+ ("rust-xxhash-rust" ,rust-xxhash-rust-0.8))
+ #:cargo-development-inputs
+ ;; keep the development-inputs to allow running tests easily
+ (("rust-criterion" ,rust-criterion-0.3)
+ ("rust-quickcheck" ,rust-quickcheck-0.9)
+ ("rust-rand" ,rust-rand-0.7)
+ ("rust-rpassword" ,rust-rpassword-5))))
+ (home-page "https://sequoia-pgp.org/")
+ (synopsis "OpenPGP data types and associated machinery")
+ (description "This crate aims to provide a complete implementation of
+OpenPGP as defined by RFC 4880 as well as some extensions (e.g., RFC 6637,
+which describes ECC cryptography) for OpenPGP. This includes support for
+unbuffered message processing.
+
+A few features that the OpenPGP community considers to be deprecated (e.g.,
+version 3 compatibility) have been left out. The developers have also updated
+some OpenPGP defaults to avoid foot guns (e.g., they selected modern algorithm
+defaults).
+
+This Guix package is built to use the nettle cryptographic library.")
+ (license license:lgpl2.0+)))
+
(define-public sequoia
(package
(name "sequoia")
--
2.30.2
- [bug#52623] [PATCH 14/42] gnu: rust-web-sys-0.3: Update to 0.3.51., (continued)
- [bug#52623] [PATCH 14/42] gnu: rust-web-sys-0.3: Update to 0.3.51., Hartmut Goebel, 2021/12/18
- [bug#52627] [PATCH 18/42] gnu: Add rust-fallible-collections-0.3., Hartmut Goebel, 2021/12/18
- [bug#52611] [PATCH 02/42] gnu: rust-criterion-0.3: Update to 0.3.4., Hartmut Goebel, 2021/12/18
- [bug#52618] [PATCH 09/42] gnu: rust-wasm-bindgen-backend-0.2: Update to 0.2.74., Hartmut Goebel, 2021/12/18
- [bug#52624] [PATCH 15/42] gnu: rust-version-compare 0.0.11: Fix variable name., Hartmut Goebel, 2021/12/18
- [bug#52629] [PATCH 20/42] gnu: Add rust-dcv-color-primitives-0.1., Hartmut Goebel, 2021/12/18
- [bug#52632] [PATCH 23/42] gnu: Add rust-pathfinder-simd-0.5., Hartmut Goebel, 2021/12/18
- [bug#52633] [PATCH 24/42] gnu: Add rust-pathfinder-geometry-0.5., Hartmut Goebel, 2021/12/18
- [bug#52635] [PATCH 26/42] gnu: Add rust-font-kit-0.10., Hartmut Goebel, 2021/12/18
- [bug#52640] [PATCH 31/42] gnu: Add rust-buffered-reader-1., Hartmut Goebel, 2021/12/18
- [bug#52642] [PATCH 33/42] gnu: Add rust-sequoia-openpgp-1.,
Hartmut Goebel <=
- [bug#52634] [PATCH 25/42] gnu: Add rust-freetype-0.7., Hartmut Goebel, 2021/12/18
- [bug#52644] [PATCH 35/42] gnu: Add rust-sequoia-ipc-0.25., Hartmut Goebel, 2021/12/18
- [bug#52643] [PATCH 34/42] gnu: Add rust-sequoia-net-0.23., Hartmut Goebel, 2021/12/18
- [bug#52645] [PATCH 36/42] gnu: Add rust-sequoia-autocrypt-0.23., Hartmut Goebel, 2021/12/18
- [bug#52636] [PATCH 27/42] gnu: Add rust-plotters-backend-0.3., Hartmut Goebel, 2021/12/18
- [bug#52637] [PATCH 28/42] gnu: Add rust-plotters-bitmap-0.3., Hartmut Goebel, 2021/12/18
- [bug#52639] [PATCH 30/42] gnu: Add rust-plotters-0.3., Hartmut Goebel, 2021/12/18
- [bug#52641] [PATCH 32/42] gnu: Add rust-xxhash-rust-0.8., Hartmut Goebel, 2021/12/18
- [bug#52638] [PATCH 29/42] gnu: Add rust-plotters-svg-0.3., Hartmut Goebel, 2021/12/18
- [bug#52610] [PATCH 37/42] gnu: Add sequoia-sq., Hartmut Goebel, 2021/12/18