[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/201: gnu: Add python-tomli.
From: |
guix-commits |
Subject: |
98/201: gnu: Add python-tomli. |
Date: |
Mon, 1 Nov 2021 23:18:47 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 3594c10f7967f7decb54d559da36b1edad45f19a
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
- 199/201: gnu: libgdata: Use libsoup 2 to fix build., (continued)
- 199/201: gnu: libgdata: Use libsoup 2 to fix build., guix-commits, 2021/11/01
- 181/201: gnu: accountsservice: Use meson 0.59.4 to work around a bug in 0.60.0., guix-commits, 2021/11/01
- 60/201: gnu: gstreamer: Update to 1.18.5., guix-commits, 2021/11/01
- 65/201: gnu: gst-libav: Update to 1.18.5., guix-commits, 2021/11/01
- 68/201: gnu: gstreamer-docs: Update to 1.18.5., guix-commits, 2021/11/01
- 85/201: gnu: Add ld-gold-wrapper., guix-commits, 2021/11/01
- 86/201: gnu: gdb: Patch references to /bin/sh and add debug output., guix-commits, 2021/11/01
- 95/201: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/11/01
- 100/201: gnu: python-pytest-6: Fix version via setuptools-scm., guix-commits, 2021/11/01
- 104/201: build: glib-or-gtk-build-system: Fix indentation., guix-commits, 2021/11/01
- 98/201: gnu: Add python-tomli.,
guix-commits <=
- 101/201: gnu: python-pathlib2: Update to 2.3.6., guix-commits, 2021/11/01
- 109/201: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/11/01
- 113/201: gnu: gusb-minimal: Introduce minimal variant., guix-commits, 2021/11/01
- 127/201: gnu: vala: Update to 0.54.2., guix-commits, 2021/11/01
- 116/201: gnu: mesa: Update to 21.2.4., guix-commits, 2021/11/01
- 137/201: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., guix-commits, 2021/11/01
- 143/201: gnu: elogind: Update to 246.10., guix-commits, 2021/11/01
- 148/201: gnu: jsoncpp: Apply patch to regular package., guix-commits, 2021/11/01
- 154/201: gnu: python-dbusmock: Update to 0.24.0., guix-commits, 2021/11/01
- 161/201: gnu: mesa: Enable support for OpenGL ES 1.1 and 2.0., guix-commits, 2021/11/01