[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/140: gnu: Add python-tomli.
From: |
guix-commits |
Subject: |
98/140: gnu: Add python-tomli. |
Date: |
Sun, 17 Oct 2021 23:11:05 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 3675e3656cedad8fdb6b84495b5476dbc5539e6a
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Oct 1 15:52:16 2021 -0400
gnu: Add python-tomli.
* gnu/packages/python-build.scm (python-tomli): New variable.
---
gnu/packages/python-build.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 57b56f6..a7b60ac 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -135,6 +135,44 @@ Python file, so it can be easily copied into your
project.")
(define-public python2-six-bootstrap
(package-with-python2 python-six-bootstrap))
+(define-public python-tomli
+ (package
+ (name "python-tomli")
+ (version "1.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "tomli" version))
+ (sha256
+ (base32 "0hllrb2p93bfhrm7frf0pj1fl6f5kn0w2h0vmx3vp2lnyfv5rdx5"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f ;disabled to avoid extra dependencies
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ (setenv "PYTHONPATH" (string-append (getcwd) ":"
+ (getenv "GUIX_PYTHONPATH")))
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation"
+ "--skip-dependency-check")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" out whl)))))))
+ (native-inputs
+ `(("python-flit-core" ,python-flit-core)
+ ("python-pypa-build" ,python-pypa-build)
+ ("python-six", python-six-bootstrap)))
+ (home-page "https://github.com/hukkin/tomli")
+ (synopsis "Small and fast TOML parser")
+ (description "Tomli is a minimal TOML parser that is fully compatible with
+@url{https://toml.io/en/v1.0.0,TOML v1.0.0}. It is about 2.4 times as fast as
+@code{python-toml}.")
+ (license license:expat)))
+
(define-public python-pep517-bootstrap
(hidden-package
(package
- 82/140: gnu: curl: Honor #:tests?., (continued)
- 82/140: gnu: curl: Honor #:tests?., guix-commits, 2021/10/17
- 84/140: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/10/17
- 88/140: guix: packages: Fix repacking of plain tarballs., guix-commits, 2021/10/17
- 89/140: aux-files: sitecustomize: Cleanup and add explanatory comments., guix-commits, 2021/10/17
- 90/140: gnu: glade3: Remove sitecustomize.py workaround., guix-commits, 2021/10/17
- 97/140: gnu: Add python-flit-core., guix-commits, 2021/10/17
- 95/140: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/10/17
- 92/140: gnu: rust: Add rust 1.54 and move all non-bootstrapping logic to it., guix-commits, 2021/10/17
- 87/140: gnu: gdb: Normalize indentation., guix-commits, 2021/10/17
- 93/140: gnu: Build all Rust packages using the latest rustc., guix-commits, 2021/10/17
- 98/140: gnu: Add python-tomli.,
guix-commits <=
- 100/140: gnu: python-pytest-6: Fix version via setuptools-scm., guix-commits, 2021/10/17
- 102/140: gnu: meson: Patch to allow installing to independent prefixes., guix-commits, 2021/10/17
- 104/140: build: glib-or-gtk-build-system: Fix indentation., guix-commits, 2021/10/17
- 105/140: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/10/17
- 107/140: gnu: lsof: Disable the LTlock test., guix-commits, 2021/10/17
- 108/140: gnu: lsof: Fix indentation., guix-commits, 2021/10/17
- 116/140: gnu: mesa: Update to 21.2.4., guix-commits, 2021/10/17
- 114/140: gnu: rest: Use libsoup-minimal., guix-commits, 2021/10/17
- 115/140: gnu: inkscape: Remove the legacy 0.92 version., guix-commits, 2021/10/17
- 117/140: gnu: graphviz: Update to 2.49.0., guix-commits, 2021/10/17