[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
97/169: gnu: Add python-flit-core.
From: |
guix-commits |
Subject: |
97/169: gnu: Add python-flit-core. |
Date: |
Thu, 28 Oct 2021 02:08:40 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit b1c814a8a1a9e842a775a962418bd8489601060d
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 | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index e55044d..44edb2d 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,44 @@ 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
+ (package
+ (name "python-flit-core")
+ (version "3.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "flit" version))
+ (sha256
+ (base32 "10vjqnybvjdqdbmyc0asbhhvq51yjnnj00645yiq9849gnr8h0ir"))))
+ (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)))
- 72/169: gnu: libnice: Update to 0.1.18-0.47a9633., (continued)
- 72/169: gnu: libnice: Update to 0.1.18-0.47a9633., guix-commits, 2021/10/28
- 78/169: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/10/28
- 75/169: gnu: glibc: Remove unneeded nscd patching., guix-commits, 2021/10/28
- 76/169: gnu: glibc: Look for the current timezone in /etc/localtime., guix-commits, 2021/10/28
- 79/169: gnu: diffutils: Fix signal processing., guix-commits, 2021/10/28
- 77/169: gnu: tzdata: Update to 2021e., guix-commits, 2021/10/28
- 85/169: gnu: Add ld-gold-wrapper., guix-commits, 2021/10/28
- 91/169: gnu: rust: Bootstrap rust from 1.39.0 and optimize build time., guix-commits, 2021/10/28
- 89/169: aux-files: sitecustomize: Cleanup and add explanatory comments., guix-commits, 2021/10/28
- 94/169: gnu: fontconfig: Add a search path for XDG_DATA_DIRS., guix-commits, 2021/10/28
- 97/169: gnu: Add python-flit-core.,
guix-commits <=
- 98/169: gnu: Add python-tomli., guix-commits, 2021/10/28
- 96/169: gnu: python-pypa-build: Update to 0.7.0., guix-commits, 2021/10/28
- 99/169: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/10/28
- 102/169: gnu: meson: Patch to allow installing to independent prefixes., guix-commits, 2021/10/28
- 103/169: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase., guix-commits, 2021/10/28
- 105/169: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/10/28
- 107/169: gnu: lsof: Disable the LTlock test., guix-commits, 2021/10/28
- 108/169: gnu: lsof: Fix indentation., guix-commits, 2021/10/28
- 110/169: gnu: Add docbook-xsl-ns., guix-commits, 2021/10/28
- 114/169: gnu: rest: Use libsoup-minimal., guix-commits, 2021/10/28