[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/217: gnu: Add python-tomli.
From: |
guix-commits |
Subject: |
98/217: gnu: Add python-tomli. |
Date: |
Sun, 14 Nov 2021 19:20:52 -0500 (EST) |
vagrantc 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
- 97/217: gnu: Add python-flit-core., (continued)
- 97/217: gnu: Add python-flit-core., guix-commits, 2021/11/14
- 84/217: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/11/14
- 91/217: gnu: rust: Bootstrap rust from 1.39.0 and optimize build time., guix-commits, 2021/11/14
- 37/217: gnu: python-sphinxcontrib-serializinghtml: Update to 1.1.5., guix-commits, 2021/11/14
- 49/217: gnu: e2fsprogs: Update to 1.46.4., guix-commits, 2021/11/14
- 59/217: Revert gstreamer update to 1.19.2., guix-commits, 2021/11/14
- 78/217: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/11/14
- 92/217: gnu: rust: Add rust 1.54 and move all non-bootstrapping logic to it., guix-commits, 2021/11/14
- 95/217: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/11/14
- 93/217: gnu: Build all Rust packages using the latest rustc., guix-commits, 2021/11/14
- 98/217: gnu: Add python-tomli.,
guix-commits <=
- 99/217: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/11/14
- 102/217: gnu: meson: Patch to allow installing to independent prefixes., guix-commits, 2021/11/14
- 101/217: gnu: python-pathlib2: Update to 2.3.6., guix-commits, 2021/11/14
- 111/217: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/11/14
- 116/217: gnu: mesa: Update to 21.2.4., guix-commits, 2021/11/14
- 128/217: gnu: libsoup: Reverse inheritance relationship with libsoup-minimal., guix-commits, 2021/11/14
- 132/217: gnu: webkitgtk: Add a debug output., guix-commits, 2021/11/14
- 129/217: gnu: libsoup: Update to 3.0.1., guix-commits, 2021/11/14
- 130/217: gnu: webkitgtk: Use libsoup 3 and build with GCC., guix-commits, 2021/11/14
- 131/217: gnu: pulseaudio: Add doxygen to fix build., guix-commits, 2021/11/14