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/packages | |
| 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/packages')
| -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 @@ | |||
| 86 | #:use-module (gnu packages python-crypto) | 86 | #:use-module (gnu packages python-crypto) |
| 87 | #:use-module (gnu packages python-web) | 87 | #:use-module (gnu packages python-web) |
| 88 | #:use-module (gnu packages python-xyz) | 88 | #:use-module (gnu packages python-xyz) |
| 89 | #:use-module (gnu packages serialization) | ||
| 89 | #:use-module (gnu packages qt) | 90 | #:use-module (gnu packages qt) |
| 90 | #:use-module (gnu packages sqlite) | 91 | #:use-module (gnu packages sqlite) |
| 91 | #:use-module (gnu packages ssh) | 92 | #: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 | |||
| 25506 | case-folding for case-insensitive matches in Unicode.") | 25506 | case-folding for case-insensitive matches in Unicode.") |
| 25507 | (license license:psfl))) | 25507 | (license license:psfl))) |
| 25508 | 25508 | ||
| 25509 | (define-public python-rencode | ||
| 25510 | ;; TODO: Move to (gnu package serialization) | ||
| 25511 | (package | ||
| 25512 | (name "python-rencode") | ||
| 25513 | (version "1.0.8") | ||
| 25514 | (source | ||
| 25515 | (origin | ||
| 25516 | (method git-fetch) ;no tests in PyPI archive | ||
| 25517 | (uri (git-reference | ||
| 25518 | (url "https://github.com/aresch/rencode") | ||
| 25519 | (commit (string-append "v" version)))) | ||
| 25520 | (file-name (git-file-name name version)) | ||
| 25521 | (sha256 | ||
| 25522 | (base32 "1dicbm8gdii2bjp85s2p4pnclf25k9x4b4kaj80y8ddhh87glrlk")))) | ||
| 25523 | (build-system pyproject-build-system) | ||
| 25524 | (arguments | ||
| 25525 | (list | ||
| 25526 | #:phases | ||
| 25527 | #~(modify-phases %standard-phases | ||
| 25528 | (add-after 'unpack 'disable-native-optimization | ||
| 25529 | (lambda _ | ||
| 25530 | (substitute* "build.py" | ||
| 25531 | (("^COMPILE_ARGS.*") | ||
| 25532 | "COMPILE_ARGS: list[str] = []\n"))))))) | ||
| 25533 | (native-inputs | ||
| 25534 | (list python-cython | ||
| 25535 | python-pytest | ||
| 25536 | python-poetry-core | ||
| 25537 | python-setuptools)) | ||
| 25538 | (home-page "https://github.com/aresch/rencode") | ||
| 25539 | (synopsis "Serialization of heterogeneous data structures") | ||
| 25540 | (description | ||
| 25541 | "The @code{rencode} module is a data structure serialization library, | ||
| 25542 | similar to @code{bencode} from the BitTorrent project. For complex, | ||
| 25543 | heterogeneous data structures with many small elements, r-encoding stake up | ||
| 25544 | significantly less space than b-encodings. This version of rencode is a | ||
| 25545 | complete rewrite in Cython to attempt to increase the performance over the | ||
| 25546 | pure Python module.") | ||
| 25547 | (license license:bsd-3))) | ||
| 25548 | |||
| 25549 | (define-public python-pysocks | 25509 | (define-public python-pysocks |
| 25550 | (package | 25510 | (package |
| 25551 | (name "python-pysocks") | 25511 | (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.") | |||
| 1129 | interface description protocol and its associated command line tool") | 1129 | interface description protocol and its associated command line tool") |
| 1130 | (license license:asl2.0))) | 1130 | (license license:asl2.0))) |
| 1131 | 1131 | ||
| 1132 | (define-public python-rencode | ||
| 1133 | (package | ||
| 1134 | (name "python-rencode") | ||
| 1135 | (version "1.0.8") | ||
| 1136 | (source | ||
| 1137 | (origin | ||
| 1138 | (method git-fetch) ;no tests in PyPI archive | ||
| 1139 | (uri (git-reference | ||
| 1140 | (url "https://github.com/aresch/rencode") | ||
| 1141 | (commit (string-append "v" version)))) | ||
| 1142 | (file-name (git-file-name name version)) | ||
| 1143 | (sha256 | ||
| 1144 | (base32 "1dicbm8gdii2bjp85s2p4pnclf25k9x4b4kaj80y8ddhh87glrlk")))) | ||
| 1145 | (build-system pyproject-build-system) | ||
| 1146 | (arguments | ||
| 1147 | (list | ||
| 1148 | #:phases | ||
| 1149 | #~(modify-phases %standard-phases | ||
| 1150 | (add-after 'unpack 'disable-native-optimization | ||
| 1151 | (lambda _ | ||
| 1152 | (substitute* "build.py" | ||
| 1153 | (("^COMPILE_ARGS.*") | ||
| 1154 | "COMPILE_ARGS: list[str] = []\n"))))))) | ||
| 1155 | (native-inputs | ||
| 1156 | (list python-cython | ||
| 1157 | python-pytest | ||
| 1158 | python-poetry-core | ||
| 1159 | python-setuptools)) | ||
| 1160 | (home-page "https://github.com/aresch/rencode") | ||
| 1161 | (synopsis "Serialization of heterogeneous data structures") | ||
| 1162 | (description | ||
| 1163 | "The @code{rencode} module is a data structure serialization library, | ||
| 1164 | similar to @code{bencode} from the BitTorrent project. For complex, | ||
| 1165 | heterogeneous data structures with many small elements, r-encoding stake up | ||
| 1166 | significantly less space than b-encodings. This version of rencode is a | ||
| 1167 | complete rewrite in Cython to attempt to increase the performance over the | ||
| 1168 | pure Python module.") | ||
| 1169 | (license license:bsd-3))) | ||
| 1170 | |||
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 @@ | |||
| 128 | #:use-module (gnu packages python-graphics) | 128 | #:use-module (gnu packages python-graphics) |
| 129 | #:use-module (gnu packages python-xyz) | 129 | #:use-module (gnu packages python-xyz) |
| 130 | #:use-module (gnu packages qt) | 130 | #:use-module (gnu packages qt) |
| 131 | #:use-module (gnu packages serialization) | ||
| 131 | #:use-module (gnu packages spice) | 132 | #:use-module (gnu packages spice) |
| 132 | #:use-module (gnu packages tls) | 133 | #:use-module (gnu packages tls) |
| 133 | #:use-module (gnu packages video) | 134 | #:use-module (gnu packages video) |
