diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2022-11-23 13:17:31 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2022-11-23 13:57:48 +0100 |
| commit | 101a4e2718db6b9b96333d75cacb761640074405 (patch) | |
| tree | d19133329365cd794e4d960dd8bdd1b5a3eadc0f /gnu/packages/python-compression.scm | |
| parent | 6ea2229f89bac7adfbf27f00a8387df3a4ad9310 (diff) | |
gnu: Add python-pybcj.
* gnu/packages/python-compression.scm (python-pybcj): New variable.
Diffstat (limited to 'gnu/packages/python-compression.scm')
| -rw-r--r-- | gnu/packages/python-compression.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 8aa666cc25d..999f9891024 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm | |||
| @@ -72,6 +72,36 @@ file-object abstraction, making it possible to use multiple files as if they | |||
| 72 | were a single file.") | 72 | were a single file.") |
| 73 | (license license:lgpl2.1+))) | 73 | (license license:lgpl2.1+))) |
| 74 | 74 | ||
| 75 | (define-public python-pybcj | ||
| 76 | (package | ||
| 77 | (name "python-pybcj") | ||
| 78 | (version "1.0.1") | ||
| 79 | (source (origin | ||
| 80 | (method url-fetch) | ||
| 81 | (uri (pypi-uri "pybcj" version)) | ||
| 82 | (sha256 | ||
| 83 | (base32 | ||
| 84 | "1hvm3c3mb20z25kmbzyyn6pr5inx50z0ignl8b0bggxaik82ws4b")))) | ||
| 85 | (build-system pyproject-build-system) | ||
| 86 | (propagated-inputs (list python-importlib-metadata)) | ||
| 87 | (native-inputs | ||
| 88 | (list python-coverage | ||
| 89 | python-hypothesis | ||
| 90 | python-pytest | ||
| 91 | python-pytest-cov | ||
| 92 | python-setuptools-scm)) | ||
| 93 | (home-page "https://codeberg.org/miurahr/pybcj") | ||
| 94 | (synopsis "BCJ filter library") | ||
| 95 | (description "In data compression, BCJ, short for Branch-Call-Jump, refers | ||
| 96 | to a technique that improves the compression of machine code of executable | ||
| 97 | binaries by replacing relative branch addresses with absolute ones. This | ||
| 98 | allows a LZMA compressor to identify duplicate targets and archive higher | ||
| 99 | compression rate. BCJ is used in the 7-zip compression utility as the default | ||
| 100 | filter for executable binaries. | ||
| 101 | |||
| 102 | pybcj provides Python bindings to a BCJ implementation in C.") | ||
| 103 | (license license:lgpl2.1+))) | ||
| 104 | |||
| 75 | (define-public python-bcj-cffi | 105 | (define-public python-bcj-cffi |
| 76 | (package | 106 | (package |
| 77 | (name "python-bcj-cffi") | 107 | (name "python-bcj-cffi") |
