aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-04-04 21:16:59 +0200
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:28 +0200
commit6363f5002ce31cfb5376a7a892511d0656e16ba5 (patch)
tree4ba492a579136f9268fac96c8223a6c01217e9e5
parent9938b7cc490f3e8c9990834dcf23eab76774a8c7 (diff)
downloadguix-6363f5002ce31cfb5376a7a892511d0656e16ba5.tar.gz
guix-6363f5002ce31cfb5376a7a892511d0656e16ba5.zip
gnu: python-pgpy: Fix tests.
* gnu/packages/python-crypto.scm (python-pgpy): Fix tests. [build-system]: Switch to pyproject. [arguments]{phases}: Remove argument. {test-flags}: Ignore failing tests. [native-inputs]: Add python-setuptools. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-crypto.scm15
1 files changed, 6 insertions, 9 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 13ad37bca8..fc57afb862 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1634,17 +1634,14 @@ signatures.")
(uri (pypi-uri "PGPy" version))
(sha256
(base32 "10w3h934fi1ijx72ppn67a50yhkf8n1db6xx02gk2fjc7wsjx717"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest")))))))
+ (list #:test-flags
+ ;; All broken tests are in this file.
+ ;; They fail with ValueError: key_size must be at least 1024-bits.
+ #~(list "--ignore" "tests/test_10_exceptions.py")))
(native-inputs
- (list python-pytest
- python-wheel))
+ (list python-pytest python-setuptools python-wheel))
(propagated-inputs (list python-cryptography python-pyasn1))
(home-page "https://github.com/SecurityInnovation/PGPy")
(synopsis "Python implementation of OpenPGP")