[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/130: gnu: Add python-tomli.
From: |
guix-commits |
Subject: |
98/130: gnu: Add python-tomli. |
Date: |
Sat, 16 Oct 2021 02:36:41 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 6f2a23d1dff46d17f7cbe78b6daf53a85d7221ec
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
- 67/130: gnu: python-gst: Update to 1.18.5., (continued)
- 67/130: gnu: python-gst: Update to 1.18.5., guix-commits, 2021/10/16
- 79/130: gnu: diffutils: Fix signal processing., guix-commits, 2021/10/16
- 73/130: bluez: Update to 5.61., guix-commits, 2021/10/16
- 80/130: gnu: diffutils: Update to 3.8., guix-commits, 2021/10/16
- 85/130: gnu: Add ld-gold-wrapper., guix-commits, 2021/10/16
- 93/130: gnu: Build all Rust packages using the latest rustc., guix-commits, 2021/10/16
- 88/130: guix: packages: Fix repacking of plain tarballs., guix-commits, 2021/10/16
- 91/130: gnu: rust: Bootstrap rust from 1.39.0 and optimize build time., guix-commits, 2021/10/16
- 95/130: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/10/16
- 94/130: gnu: fontconfig: Add a search path for XDG_DATA_DIRS., guix-commits, 2021/10/16
- 98/130: gnu: Add python-tomli.,
guix-commits <=
- 105/130: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/10/16
- 107/130: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/10/16
- 106/130: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/10/16
- 108/130: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/10/16
- 113/130: gnu: mesa: Update to 21.2.4., guix-commits, 2021/10/16
- 115/130: gnu: lsof: Disable the LTlock test., guix-commits, 2021/10/16
- 116/130: gnu: lsof: Fix indentation., guix-commits, 2021/10/16
- 123/130: profiles: Add a gdk-pixbuf-loaders-cache-file hook., guix-commits, 2021/10/16
- 126/130: gnu: glib: Update to 2.70, specify a bindir prefix and hide package., guix-commits, 2021/10/16
- 128/130: gnu: libthai: Make datrie a normal native-input., guix-commits, 2021/10/16