diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2025-03-27 16:59:20 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-01 11:57:08 +0100 |
| commit | 295f6417025638dfcd94b5c19bfbff3c5a85e5e4 (patch) | |
| tree | 4ed5eae4fb33df3d81f95233cee62eef0734b300 | |
| parent | a9530d181d02e73896779cebd0687cf9cffb2c82 (diff) | |
gnu: Add python-crc.
* gnu/packages/python-xyz.scm (python-crc): New variable.
Change-Id: I6d9c4320c1e4b01fe4c87013b7ff6761d993bad4
Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/python-xyz.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5969f9ff6e..dd5648a9d5 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") |
