[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
97/136: gnu: Add python-flit-core.
From: |
guix-commits |
Subject: |
97/136: gnu: Add python-flit-core. |
Date: |
Sun, 17 Oct 2021 05:16:15 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 618f9b79b22fb01acae8e19c89866d66bb57e8e3
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Oct 1 11:00:51 2021 -0400
gnu: Add python-flit-core.
* gnu/packages/python-build.scm (python-flit-core): New variable.
---
gnu/packages/python-build.scm | 51 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index e55044d..57b56f6 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -27,6 +27,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system python)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix packages))
;;; Commentary:
@@ -298,3 +299,53 @@ implementation developed for Poetry. This project is
intended to be
a light weight, fully compliant, self-contained package allowing PEP 517
compatible build front-ends to build Poetry managed projects.")
(license license:expat)))
+
+(define-public python-flit-core
+ ;; Use the latest commit of the 'zip-date-min-1980' branch, as it includes
+ ;; necessary fixes to the yet unreleased bootstrapping procedure defined in
+ ;; the flit_core/build_dists.py script.
+ (let ((revision "0")
+ (commit "47c1b48b307f4c89fe9178b1fca2282950e213cb")
+ (version* "3.3.0"))
+ (package
+ (name "python-flit-core")
+ (version (git-version version* revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/takluyver/flit")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "01vg6ir0gla5zb8539rxn8zmczly3d6qh2mcfpjkihxqvqlrs6gr"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-toml" ,python-toml)))
+ (arguments
+ ;; flit-core has a test suite, but it requires Pytest. Disable it so
+ ;; as to not pull pytest as an input.
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'build
+ ;; flit-core requires itself to build. Luckily, a
+ ;; bootstrapping script exists, which does so using just
+ ;; the checkout sources and Python.
+ (lambda _
+ (invoke "python" "flit_core/build_dists.py")))
+ (replace 'install
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (whl (car (find-files "." "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" out whl))))
+ ;; The sanity-check phase fails because flit depends on tomli at
+ ;; run-time, but this core variant avoids it to avoid a cycle.
+ (delete 'sanity-check))))
+ (home-page "https://github.com/takluyver/flit")
+ (synopsis "Core package of the Flit Python build system")
+ (description "This package provides @code{flit-core}, a PEP 517 build
+backend for packages using Flit. The only public interface is the API
+specified by PEP 517, @code{flit_core.buildapi}.")
+ (license license:bsd-3))))
- 122/136: gnu: heimdal: Fix build., (continued)
- 122/136: gnu: heimdal: Fix build., guix-commits, 2021/10/17
- 130/136: gnu: webkitgtk: Update to 2.34.0., guix-commits, 2021/10/17
- 127/136: gnu: vala: Update to 0.54.2., guix-commits, 2021/10/17
- 63/136: gnu: gst-plugins-bad: Update to 1.18.5., guix-commits, 2021/10/17
- 110/136: gnu: Add docbook-xsl-ns., guix-commits, 2021/10/17
- 109/136: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/10/17
- 121/136: gnu: util-linux: Globally disable the lsns test., guix-commits, 2021/10/17
- 66/136: gnu: gst-editing-services: Update to 1.18.5., guix-commits, 2021/10/17
- 80/136: gnu: diffutils: Update to 3.8., guix-commits, 2021/10/17
- 83/136: gnu: gcc-5: Fix powerpc64le-linux build, guix-commits, 2021/10/17
- 97/136: gnu: Add python-flit-core.,
guix-commits <=
- 113/136: gnu: gusb-minimal: Introduce minimal variant., guix-commits, 2021/10/17
- 107/136: gnu: lsof: Disable the LTlock test., guix-commits, 2021/10/17
- 65/136: gnu: gst-libav: Update to 1.18.5., guix-commits, 2021/10/17
- 76/136: gnu: glibc: Look for the current timezone in /etc/localtime., guix-commits, 2021/10/17
- 72/136: gnu: libnice: Update to 0.1.18-0.47a9633., guix-commits, 2021/10/17
- 78/136: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/10/17
- 81/136: build: qt-utils: Don't wrap .X-real files., guix-commits, 2021/10/17
- 84/136: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/10/17
- 85/136: gnu: Add ld-gold-wrapper., guix-commits, 2021/10/17
- 88/136: guix: packages: Fix repacking of plain tarballs., guix-commits, 2021/10/17