[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
98/180: gnu: Add python-tomli.
From: |
guix-commits |
Subject: |
98/180: gnu: Add python-tomli. |
Date: |
Fri, 29 Oct 2021 15:56:54 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 2fdd8274c5cfca7e62a1fc42f83119089c0f7b89
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
- 116/180: gnu: mesa: Update to 21.2.4., (continued)
- 116/180: gnu: mesa: Update to 21.2.4., guix-commits, 2021/10/29
- 123/180: gnu: pango: Update to 1.48.10., guix-commits, 2021/10/29
- 122/180: gnu: heimdal: Fix build., guix-commits, 2021/10/29
- 140/180: gnu: gtk: Replace gdk-pixbuf+svg by librsvg., guix-commits, 2021/10/29
- 169/180: gnu: Add meson-0.59., guix-commits, 2021/10/29
- 78/180: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/10/29
- 88/180: guix: packages: Fix repacking of plain tarballs., guix-commits, 2021/10/29
- 91/180: gnu: rust: Bootstrap rust from 1.39.0 and optimize build time., guix-commits, 2021/10/29
- 95/180: gnu: Move a few Python packages to (gnu packages python-build)., guix-commits, 2021/10/29
- 96/180: gnu: python-pypa-build: Update to 0.7.0., guix-commits, 2021/10/29
- 98/180: gnu: Add python-tomli.,
guix-commits <=
- 99/180: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/10/29
- 101/180: gnu: python-pathlib2: Update to 2.3.6., guix-commits, 2021/10/29
- 102/180: gnu: meson: Patch to allow installing to independent prefixes., guix-commits, 2021/10/29
- 103/180: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase., guix-commits, 2021/10/29
- 107/180: gnu: lsof: Disable the LTlock test., guix-commits, 2021/10/29
- 106/180: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/10/29
- 108/180: gnu: lsof: Fix indentation., guix-commits, 2021/10/29
- 111/180: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/10/29
- 118/180: gnu: cmake-bootstrap: Update to 3.21.3., guix-commits, 2021/10/29
- 119/180: gnu: openssl: Absorb 1.1.1l graft., guix-commits, 2021/10/29