[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/142: gnu: Add python-tomli.
From: |
guix-commits |
Subject: |
98/142: gnu: Add python-tomli. |
Date: |
Wed, 20 Oct 2021 14:56:50 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 63a1c521d07899d6e50a0ea7ecc1f44f6af98302
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
- 21/142: gnu: gst-plugins-base: Enable more features., (continued)
- 21/142: gnu: gst-plugins-base: Enable more features., guix-commits, 2021/10/20
- 53/142: gnu: googletest: Update to 1.11.0., guix-commits, 2021/10/20
- 114/142: gnu: rest: Use libsoup-minimal., guix-commits, 2021/10/20
- 139/142: gnu: gdk-pixbuf: Add a search path for the loaders cache file., guix-commits, 2021/10/20
- 130/142: gnu: webkitgtk: Update to 2.34.0., guix-commits, 2021/10/20
- 129/142: gnu: libsoup: Update to 3.0.1., guix-commits, 2021/10/20
- 135/142: gnu: ungoogled-chromium: Use the new lld-as-ld-wrapper., guix-commits, 2021/10/20
- 43/142: gnu: zxing-cpp: Update to 1.2.0., guix-commits, 2021/10/20
- 62/142: gnu: gst-plugins-good: Update to 1.18.5., guix-commits, 2021/10/20
- 137/142: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., guix-commits, 2021/10/20
- 98/142: gnu: Add python-tomli.,
guix-commits <=
- 86/142: gnu: gdb: Patch references to /bin/sh and add debug output., guix-commits, 2021/10/20
- 93/142: gnu: Build all Rust packages using the latest rustc., guix-commits, 2021/10/20
- 133/142: gnu: python-flit: Update to 3.3.0., guix-commits, 2021/10/20
- 134/142: gnu: llvm: Add make-lld-wrapper, lld-wrapper and lld-as-ld-wrapper., guix-commits, 2021/10/20
- 120/142: gnu: mit-krb5: Absorb 1.19.2 graft., guix-commits, 2021/10/20
- 123/142: gnu: pango: Update to 1.48.10., guix-commits, 2021/10/20
- 122/142: gnu: heimdal: Fix build., guix-commits, 2021/10/20
- 125/142: gnu: glib: Update to 2.70, specify a bindir prefix and hide package., guix-commits, 2021/10/20
- 131/142: gnu: pulseaudio: Add doxygen to fix build., guix-commits, 2021/10/20
- 140/142: gnu: gtk: Deprecate gdk-pixbuf+svg in favor of librsvg., guix-commits, 2021/10/20