[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/227: gnu: Add python-tomli.
From: |
guix-commits |
Subject: |
98/227: gnu: Add python-tomli. |
Date: |
Thu, 11 Nov 2021 12:30:14 -0500 (EST) |
apteryx pushed a commit to branch core-updates-frozen
in repository guix.
commit a6d9dbb1b2499236f6c70c5154d9f024be9321de
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
- 72/227: gnu: libnice: Update to 0.1.18-0.47a9633 and disable test-bind test., (continued)
- 72/227: gnu: libnice: Update to 0.1.18-0.47a9633 and disable test-bind test., guix-commits, 2021/11/11
- 73/227: bluez: Update to 5.61., guix-commits, 2021/11/11
- 84/227: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/11/11
- 80/227: gnu: diffutils: Update to 3.8., guix-commits, 2021/11/11
- 85/227: gnu: Add ld-gold-wrapper., guix-commits, 2021/11/11
- 89/227: aux-files: sitecustomize: Cleanup and add explanatory comments., guix-commits, 2021/11/11
- 93/227: gnu: Build all Rust packages using the latest rustc., guix-commits, 2021/11/11
- 99/227: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/11/11
- 59/227: Revert gstreamer update to 1.19.2., guix-commits, 2021/11/11
- 101/227: gnu: python-pathlib2: Update to 2.3.6., guix-commits, 2021/11/11
- 98/227: gnu: Add python-tomli.,
guix-commits <=
- 103/227: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase., guix-commits, 2021/11/11
- 105/227: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/11/11
- 106/227: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/11/11
- 107/227: gnu: lsof: Disable the LTlock test., guix-commits, 2021/11/11
- 109/227: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/11/11
- 112/227: gnu: libcloudproviders-minimal: Introduce minimal variant., guix-commits, 2021/11/11
- 114/227: gnu: rest: Use libsoup-minimal., guix-commits, 2021/11/11
- 115/227: gnu: inkscape: Remove the legacy 0.92 version., guix-commits, 2021/11/11
- 60/227: gnu: gstreamer: Update to 1.18.5., guix-commits, 2021/11/11
- 66/227: gnu: gst-editing-services: Update to 1.18.5., guix-commits, 2021/11/11