summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-09 20:25:37 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-28 12:06:19 +0000
commit8c1b7044091a760215a7b72c03fd053a68b6205c (patch)
treeddd840e742b399e709916a922101fe299a071ca5 /gnu/packages/python-crypto.scm
parentf78e0bff2b83a2e7b043fff5cbd5ce692c6a7f0d (diff)
gnu: python-crcmod: Switch to pyproject.
* gnu/packages/python-crypto.scm (python-crcmod): [build-system]: Switch to pyproject-build-system. [arguments]: Replace <#:phases> by <#:test-backend, #:test-flags>. [native-inputs]: Add python-setuptools. Change-Id: Id5d313dfe30c6103b45a8afd03c07b5238187b45 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r--gnu/packages/python-crypto.scm12
1 files changed, 4 insertions, 8 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index ac217f4ed7c..e6fa910fd33 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -868,16 +868,12 @@ of improving usability, security and speed.")
868 (sha256 868 (sha256
869 (base32 869 (base32
870 "07k0hgr42vw2j92cln3klxka81f33knd7459cn3d8aszvfh52w6w")))) 870 "07k0hgr42vw2j92cln3klxka81f33knd7459cn3d8aszvfh52w6w"))))
871 (build-system python-build-system) 871 (build-system pyproject-build-system)
872 (arguments 872 (arguments
873 (list 873 (list
874 #:phases 874 #:test-backend #~'custom
875 #~(modify-phases %standard-phases 875 #:test-flags #~(list "-m" "crcmod.test")))
876 (replace 'check 876 (native-inputs (list python-setuptools))
877 (lambda* (#:key tests? #:allow-other-keys)
878 (when tests?
879 ;; As per the Unit Testing subsection in the README.
880 (invoke "python" "-m" "crcmod.test")))))))
881 (synopsis "CRC generator for Python") 877 (synopsis "CRC generator for Python")
882 (description "Python module for generating objects that compute the 878 (description "Python module for generating objects that compute the
883Cyclic Redundancy Check.") 879Cyclic Redundancy Check.")