diff options
| author | Brendan Tildesley <mail@brendan.scot> | 2025-11-25 22:33:34 +0800 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-11-25 18:53:09 +0000 |
| commit | d3e8c33566556bde59ab8315ecd4c22f40e7a329 (patch) | |
| tree | e4e0f6e76e0a5f8bbe8fdeed6d4e8e16562d39c7 /gnu | |
| parent | 9b6ed483955da46ac4027d10fe46381b262ead6f (diff) | |
gnu: python-rencode: Move to serialization.
* gnu/packages/python-xyz.scm: (python-rencode): Move from here ...
* gnu/packages/serialization.scm: ... here.
* gnu/packages/serialization.scm: Include serialisation.scm
* gnu/packages/xorg.scm: Include serialisation.scm
Change-Id: I3b146e7586e524ec1d61385a5be347fe9932038d
Change-Id: I45fee0cb06a5ed59a227489746eb340c0b21e0df
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/bittorrent.scm | 1 | ||||
| -rw-r--r-- | gnu/packages/python-xyz.scm | 40 | ||||
| -rw-r--r-- | gnu/packages/serialization.scm | 39 | ||||
| -rw-r--r-- | gnu/packages/xorg.scm | 1 |
4 files changed, 41 insertions, 40 deletions
diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm index 8336fd919c2..f59e31d6a12 100644 --- a/gnu/packages/bittorrent.scm +++ b/gnu/packages/bittorrent.scm @@ -86,6 +86,7 @@ #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages serialization) #:use-module (gnu packages qt) #:use-module (gnu packages sqlite) #:use-module (gnu packages ssh) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5f2dacbf165..1dc39dbc7c6 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25506,46 +25506,6 @@ standard @code{re} module, but offers additional functionality like full case-folding for case-insensitive matches in Unicode.") (license license:psfl))) -(define-public python-rencode - ;; TODO: Move to (gnu package serialization) - (package - (name "python-rencode") - (version "1.0.8") - (source - (origin - (method git-fetch) ;no tests in PyPI archive - (uri (git-reference - (url "https://github.com/aresch/rencode") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1dicbm8gdii2bjp85s2p4pnclf25k9x4b4kaj80y8ddhh87glrlk")))) - (build-system pyproject-build-system) - (arguments - (list - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'disable-native-optimization - (lambda _ - (substitute* "build.py" - (("^COMPILE_ARGS.*") - "COMPILE_ARGS: list[str] = []\n"))))))) - (native-inputs - (list python-cython - python-pytest - python-poetry-core - python-setuptools)) - (home-page "https://github.com/aresch/rencode") - (synopsis "Serialization of heterogeneous data structures") - (description - "The @code{rencode} module is a data structure serialization library, -similar to @code{bencode} from the BitTorrent project. For complex, -heterogeneous data structures with many small elements, r-encoding stake up -significantly less space than b-encodings. This version of rencode is a -complete rewrite in Cython to attempt to increase the performance over the -pure Python module.") - (license license:bsd-3))) - (define-public python-pysocks (package (name "python-pysocks") diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 18299d9a701..feb9f523c76 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm @@ -1129,3 +1129,42 @@ and validate documents loaded by one of several supported parser libraries.") interface description protocol and its associated command line tool") (license license:asl2.0))) +(define-public python-rencode + (package + (name "python-rencode") + (version "1.0.8") + (source + (origin + (method git-fetch) ;no tests in PyPI archive + (uri (git-reference + (url "https://github.com/aresch/rencode") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dicbm8gdii2bjp85s2p4pnclf25k9x4b4kaj80y8ddhh87glrlk")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'disable-native-optimization + (lambda _ + (substitute* "build.py" + (("^COMPILE_ARGS.*") + "COMPILE_ARGS: list[str] = []\n"))))))) + (native-inputs + (list python-cython + python-pytest + python-poetry-core + python-setuptools)) + (home-page "https://github.com/aresch/rencode") + (synopsis "Serialization of heterogeneous data structures") + (description + "The @code{rencode} module is a data structure serialization library, +similar to @code{bencode} from the BitTorrent project. For complex, +heterogeneous data structures with many small elements, r-encoding stake up +significantly less space than b-encodings. This version of rencode is a +complete rewrite in Cython to attempt to increase the performance over the +pure Python module.") + (license license:bsd-3))) + diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm index 6aa80bd101e..80b569167d4 100644 --- a/gnu/packages/xorg.scm +++ b/gnu/packages/xorg.scm @@ -128,6 +128,7 @@ #:use-module (gnu packages python-graphics) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) + #:use-module (gnu packages serialization) #:use-module (gnu packages spice) #:use-module (gnu packages tls) #:use-module (gnu packages video) |
