diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-03-12 18:55:01 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-24 10:14:24 +0100 |
| commit | 98d9d09c00904dde9dfece9327a42ff3b8b5e382 (patch) | |
| tree | b8db20284e77be9ab1f6d10da37b7a40fc74d53c /gnu | |
| parent | b35905695afd2e24c56e6950433dd4f571581873 (diff) | |
gnu: python-msgspec: Adjust style and indentation.
* gnu/packages/serialization.scm (python-msgspec): Adjust style and
indentation.
Change-Id: I76fba5a2314febe4cddbc712fecf7a596a31915e
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/serialization.scm | 69 |
1 files changed, 37 insertions, 32 deletions
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm index 3ddb669a75b..f7e5d3ca3f0 100644 --- a/gnu/packages/serialization.scm +++ b/gnu/packages/serialization.scm | |||
| @@ -706,43 +706,48 @@ RPC system. Think JSON, except binary. Or think Protocol Buffers, except faste | |||
| 706 | (package | 706 | (package |
| 707 | (name "python-msgspec") | 707 | (name "python-msgspec") |
| 708 | (version "0.20.0") | 708 | (version "0.20.0") |
| 709 | (source (origin | 709 | (source |
| 710 | ;; There are no tests in the PyPI tarball. | 710 | (origin |
| 711 | (method git-fetch) | 711 | (method git-fetch) |
| 712 | (uri (git-reference | 712 | (uri (git-reference |
| 713 | (url "https://github.com/jcrist/msgspec") | 713 | (url "https://github.com/jcrist/msgspec") |
| 714 | (commit version))) | 714 | (commit version))) |
| 715 | (file-name (git-file-name name version)) | 715 | (file-name (git-file-name name version)) |
| 716 | (modules '((guix build utils))) | 716 | (modules '((guix build utils))) |
| 717 | (snippet | 717 | (snippet |
| 718 | ;; Delete autogenerated file, regenerate in a phase. | 718 | #~(begin |
| 719 | #~(begin | 719 | ;; Delete autogenerated file, regenerate in a phase. |
| 720 | (delete-file "src/msgspec/atof_consts.h") | 720 | (delete-file "src/msgspec/atof_consts.h") |
| 721 | ;; https://github.com/jcrist/msgspec/pull/981 | 721 | ;; See: <https://github.com/jcrist/msgspec/pull/981>. |
| 722 | (substitute* "scripts/generate_atof_consts.py" | 722 | (substitute* "scripts/generate_atof_consts.py" |
| 723 | (("os.path.join\\(repo, " all) | 723 | (("os.path.join\\(repo, " all) |
| 724 | (string-append all "\"src\", "))))) | 724 | (string-append all "\"src\", "))))) |
| 725 | (sha256 | 725 | (sha256 |
| 726 | (base32 | 726 | (base32 "1nbaqdyn71zcqj3wj33xw90spm9s93c7qmfkjwbnmmx85ffycq0d")))) |
| 727 | "1nbaqdyn71zcqj3wj33xw90spm9s93c7qmfkjwbnmmx85ffycq0d")))) | ||
| 728 | (build-system pyproject-build-system) | 727 | (build-system pyproject-build-system) |
| 729 | (arguments | 728 | (arguments |
| 730 | (list | 729 | (list |
| 730 | #:test-flags | ||
| 731 | ;; .pytest.toml declares testpaths = ["tests/unit", "tests/typing"] | 731 | ;; .pytest.toml declares testpaths = ["tests/unit", "tests/typing"] |
| 732 | ;; so --ignore=tests/typing will not work. | 732 | ;; so --ignore=tests/typing will not work. |
| 733 | #:test-flags #~(list "tests/unit") | 733 | #~(list "tests/unit") |
| 734 | #:phases #~(modify-phases %standard-phases | 734 | #:phases |
| 735 | (add-after 'unpack 'atof-consts | 735 | #~(modify-phases %standard-phases |
| 736 | (lambda _ | 736 | (add-after 'unpack 'atof-consts |
| 737 | (with-directory-excursion "scripts" | 737 | (lambda _ |
| 738 | ;; Regenerate the autogenerated file. | 738 | (with-directory-excursion "scripts" |
| 739 | (invoke "python" "generate_atof_consts.py"))))))) | 739 | ;; Regenerate the autogenerated file. |
| 740 | (native-inputs (list python-attrs | 740 | (invoke "python" "generate_atof_consts.py"))))))) |
| 741 | python-msgpack | 741 | (native-inputs |
| 742 | python-pytest | 742 | (list python-attrs |
| 743 | python-setuptools | 743 | python-msgpack |
| 744 | python-setuptools-scm)) | 744 | python-pytest |
| 745 | (propagated-inputs (list python-pyyaml python-tomli python-tomli-w)) | 745 | python-setuptools |
| 746 | python-setuptools-scm)) | ||
| 747 | (propagated-inputs | ||
| 748 | (list python-pyyaml | ||
| 749 | python-tomli | ||
| 750 | python-tomli-w)) | ||
| 746 | (home-page "https://jcristharif.com/msgspec/") | 751 | (home-page "https://jcristharif.com/msgspec/") |
| 747 | (synopsis "Fast serialization/validation library") | 752 | (synopsis "Fast serialization/validation library") |
| 748 | (description "@code{msgspec} is a fast serialization and validation | 753 | (description "@code{msgspec} is a fast serialization and validation |
