diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-06-01 01:59:15 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-06-01 12:05:42 +0100 |
| commit | b6327ddb91d6838f786ebad5cd0ee61bc131867e (patch) | |
| tree | cb5c25b8609c50a346fd59f1193560cd702eef7f /gnu/packages/python-compression.scm | |
| parent | 5f743c17bf384f850da1e42aa31a99de92e4eeda (diff) | |
gnu: Add python-zlib-ng.
* gnu/packages/python-compression.scm (python-zlib-ng): New variable.
Change-Id: Ib811973f56c8936caafd266166b139868904c8b8
Diffstat (limited to 'gnu/packages/python-compression.scm')
| -rw-r--r-- | gnu/packages/python-compression.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 13d73c3ef14..5ffcc6ccb2f 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm | |||
| @@ -1090,6 +1090,45 @@ efficient as possible on all supported Python versions.") | |||
| 1090 | generator") | 1090 | generator") |
| 1091 | (license license:lgpl3))) | 1091 | (license license:lgpl3))) |
| 1092 | 1092 | ||
| 1093 | (define-public python-zlib-ng | ||
| 1094 | (package | ||
| 1095 | (name "python-zlib-ng") | ||
| 1096 | (version "1.0.0") | ||
| 1097 | (source | ||
| 1098 | (origin | ||
| 1099 | (method git-fetch) | ||
| 1100 | (uri (git-reference | ||
| 1101 | (url "https://github.com/pycompression/python-zlib-ng") | ||
| 1102 | (commit (string-append "v" version)))) | ||
| 1103 | (file-name (git-file-name name version)) | ||
| 1104 | (sha256 | ||
| 1105 | (base32 "05s0023hhdk59339mmd20yycy6ldssa2kmxmzflkqlab5mpx5wxp")))) | ||
| 1106 | (build-system pyproject-build-system) | ||
| 1107 | (arguments | ||
| 1108 | (list | ||
| 1109 | #:phases | ||
| 1110 | #~(modify-phases %standard-phases | ||
| 1111 | (add-after 'unpack 'use-system-zlib-ng | ||
| 1112 | (lambda _ | ||
| 1113 | (copy-recursively | ||
| 1114 | #$(package-source (this-package-input "zlib-ng")) | ||
| 1115 | "src/zlib_ng/zlib-ng") | ||
| 1116 | (setenv "PYTHON_ZLIB_NG_LINK_DYNAMIC " "true")))))) | ||
| 1117 | (native-inputs | ||
| 1118 | (list cmake-minimal | ||
| 1119 | python-pytest | ||
| 1120 | python-setuptools | ||
| 1121 | python-setuptools-scm)) | ||
| 1122 | (inputs | ||
| 1123 | (list zlib-ng)) | ||
| 1124 | (home-page "https://github.com/pycompression/python-zlib-ng") | ||
| 1125 | (synopsis "Drop-in replacement for zlib and gzip modules using zlib-ng") | ||
| 1126 | (description | ||
| 1127 | "This package provides a faster @code{zlib} and @code{gzip} compatible | ||
| 1128 | compression and decompression by providing Python bindings for the | ||
| 1129 | @code{zlib-ng} library.") | ||
| 1130 | (license license:psfl))) | ||
| 1131 | |||
| 1093 | (define-public python-zopfli | 1132 | (define-public python-zopfli |
| 1094 | (package | 1133 | (package |
| 1095 | (name "python-zopfli") | 1134 | (name "python-zopfli") |
