From 295f6417025638dfcd94b5c19bfbff3c5a85e5e4 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Thu, 27 Mar 2025 16:59:20 +0100 Subject: [PATCH] gnu: Add python-crc. * gnu/packages/python-xyz.scm (python-crc): New variable. Change-Id: I6d9c4320c1e4b01fe4c87013b7ff6761d993bad4 Co-authored-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5969f9ff6ee..dd5648a9d5e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -561,6 +561,43 @@ using NumPy-like idioms.") line drawing algorithm}.") (license license:expat))) +(define-public python-crc + (package + (name "python-crc") + (version "7.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Nicoretti/crc/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1b9164z6v3ng5s8564a0gjdzqws6zf5aqvk6mnzw7ysk6d5rbb9r")))) + (build-system pyproject-build-system) + (native-inputs + (list python-poetry-core + python-pytest + python-wheel)) + (home-page "https://nicoretti.github.io/crc/") + (synopsis "Pure Python CRC library") + (description + "This library computes and verifies @acronym{Cyclic Redundancy Check, +CRC} checksums, using predefined and custom CRC configurations. + +Configurations: +@table @asis +@item CRC8 + CCITT AUTOSAR SAEJ1850 SAEJ1850_ZERO BLUETOOTH MAXIM-DOW +@item CRC16 + XMODEM GSM PROFIBUS MODBUS IBM-3740 KERMIT +@item CRC32 + CRC32 AUTOSAR BZIP2 POSIX +@item CRC64 + CRC64 +@end table") + (license license:bsd-2))) + (define-public python-distance (package (name "python-distance")