gnu: python-cryptography: Update to 41.0.4.

* gnu/packages/python-crypto.scm (python-cryptography): Update to 41.0.4.
(python-cryptography-rust)[arguments]: Don't install source.
[cargo-inputs]: Add rust-foreign-types-0.3 Replace rust-asn1-0.13 with
0.15, rust-pyo3-0.15 with 0.18.  Remove rust-chrono-0.4.
This commit is contained in:
Efraim Flashner 2023-10-02 10:36:47 +03:00
parent 227f4cacf6
commit 424e0ea4e5
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -506,14 +506,14 @@ is used by the Requests library to verify HTTPS requests.")
(define-public python-cryptography (define-public python-cryptography
(package (package
(name "python-cryptography") (name "python-cryptography")
(version "40.0.2") (version "41.0.4")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "cryptography" version)) (uri (pypi-uri "cryptography" version))
(sha256 (sha256
(base32 (base32
"16awbsm13vdksm98dybwvmpy2y1l636bq7g0s93scksrp0r0sg63")))) "06pm952pr6f31pzwh5fb68zryqyss0hg9cbggxm15z15844w7svz"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
@ -568,6 +568,7 @@ ciphers, message digests and key derivation functions.")
(guix build utils) (guix build utils)
(srfi srfi-1) (srfi srfi-1)
(ice-9 match)) (ice-9 match))
#:install-source? #f
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'chdir (add-after 'unpack 'chdir
@ -595,16 +596,16 @@ ciphers, message digests and key derivation functions.")
(install-file "target/release/libcryptography_rust.so" (install-file "target/release/libcryptography_rust.so"
(string-append #$output "/lib"))))) (string-append #$output "/lib")))))
#:cargo-inputs #:cargo-inputs
`(("rust-asn1-0.13" ,rust-asn1-0.13) `(("rust-asn1" ,rust-asn1-0.15)
("rust-cc" ,rust-cc-1) ("rust-cc" ,rust-cc-1)
("rust-chrono-0.4" ,rust-chrono-0.4) ("rust-foreign-types" ,rust-foreign-types-0.3)
("rust-foreign-types-shared-0.1" ,rust-foreign-types-shared-0.1) ("rust-foreign-types-shared" ,rust-foreign-types-shared-0.1)
("rust-once-cell-1" ,rust-once-cell-1) ("rust-once-cell" ,rust-once-cell-1)
("rust-openssl-0.10" ,rust-openssl-0.10) ("rust-openssl" ,rust-openssl-0.10)
("rust-openssl-sys-0.9" ,rust-openssl-sys-0.9) ("rust-openssl-sys" ,rust-openssl-sys-0.9)
("rust-ouroboros-0.15" ,rust-ouroboros-0.15) ("rust-ouroboros" ,rust-ouroboros-0.15)
("rust-pem-1" ,rust-pem-1) ("rust-pem" ,rust-pem-1)
("rust-pyo3-0.15" ,rust-pyo3-0.15)))) ("rust-pyo3" ,rust-pyo3-0.18))))
(native-inputs (list pkg-config python python-cffi)) (native-inputs (list pkg-config python python-cffi))
;; XXX: Adding rust-openssl-sys-0.9 is needed because #:cargo-inputs ;; XXX: Adding rust-openssl-sys-0.9 is needed because #:cargo-inputs
;; doesn't honor propagated-inputs. ;; doesn't honor propagated-inputs.