[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/203: gnu: Add python-tomli.
From: |
guix-commits |
Subject: |
98/203: gnu: Add python-tomli. |
Date: |
Wed, 3 Nov 2021 21:10:11 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit cc60102dfa3a6d94ca926ec6813a709b9c2b8e06
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 44edb2d..9f59c35 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.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "tomli" version))
+ (sha256
+ (base32 "1vjg44narb7hdiazdmbv8bfv7pi6phnq7nxm6aphx0iqxcah1kn6"))))
+ (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
- 87/203: gnu: gdb: Normalize indentation., (continued)
- 87/203: gnu: gdb: Normalize indentation., guix-commits, 2021/11/03
- 81/203: build: qt-utils: Don't wrap .X-real files., guix-commits, 2021/11/03
- 91/203: gnu: rust: Bootstrap rust from 1.39.0 and optimize build time., guix-commits, 2021/11/03
- 103/203: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase., guix-commits, 2021/11/03
- 111/203: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/11/03
- 97/203: gnu: Add python-flit-core., guix-commits, 2021/11/03
- 110/203: gnu: Add docbook-xsl-ns., guix-commits, 2021/11/03
- 105/203: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/11/03
- 113/203: gnu: gusb-minimal: Introduce minimal variant., guix-commits, 2021/11/03
- 109/203: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/11/03
- 98/203: gnu: Add python-tomli.,
guix-commits <=
- 106/203: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/11/03
- 92/203: gnu: rust: Add rust 1.54 and move all non-bootstrapping logic to it., guix-commits, 2021/11/03
- 115/203: gnu: inkscape: Remove the legacy 0.92 version., guix-commits, 2021/11/03
- 123/203: gnu: pango: Update to 1.48.10., guix-commits, 2021/11/03
- 116/203: gnu: mesa: Update to 21.2.4., guix-commits, 2021/11/03
- 114/203: gnu: rest: Use libsoup-minimal., guix-commits, 2021/11/03
- 118/203: gnu: cmake-bootstrap: Update to 3.21.3., guix-commits, 2021/11/03
- 120/203: gnu: mit-krb5: Absorb 1.19.2 graft., guix-commits, 2021/11/03
- 126/203: gnu: glib-networking: Update to 2.70.rc., guix-commits, 2021/11/03
- 139/203: gnu: gdk-pixbuf: Add a search path for the loaders cache file., guix-commits, 2021/11/03