[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
97/180: gnu: Add python-flit-core.
From: |
guix-commits |
Subject: |
97/180: gnu: Add python-flit-core. |
Date: |
Fri, 29 Oct 2021 15:56:53 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 1e365536bd956e476b8c27043e1d29f40c1582c0
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)))
- 87/180: gnu: gdb: Normalize indentation., (continued)
- 87/180: gnu: gdb: Normalize indentation., guix-commits, 2021/10/29
- 109/180: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/10/29
- 114/180: gnu: rest: Use libsoup-minimal., guix-commits, 2021/10/29
- 121/180: gnu: util-linux: Globally disable the lsns test., guix-commits, 2021/10/29
- 135/180: gnu: ungoogled-chromium: Use the new lld-as-ld-wrapper., guix-commits, 2021/10/29
- 137/180: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., guix-commits, 2021/10/29
- 139/180: gnu: gdk-pixbuf: Add a search path for the loaders cache file., guix-commits, 2021/10/29
- 144/180: gnu: cdparanoia: Disable parallel build., guix-commits, 2021/10/29
- 148/180: gnu: jsoncpp: Apply patch to regular package., guix-commits, 2021/10/29
- 150/180: gnu: curl: Update to 7.79.1., guix-commits, 2021/10/29
- 97/180: gnu: Add python-flit-core.,
guix-commits <=
- 100/180: gnu: python-pytest-6: Fix version via setuptools-scm., guix-commits, 2021/10/29
- 152/180: gnu: python-dbus: Update to 1.2.18., guix-commits, 2021/10/29
- 159/180: gnu: gstreamer: Disable the pipelines-seek test., guix-commits, 2021/10/29
- 162/180: gnu: zxing-cpp: Update to 1.2.0-0.00783db., guix-commits, 2021/10/29
- 166/180: gnu: python2-lit: Remove package., guix-commits, 2021/10/29
- 168/180: gnu: Add cling., guix-commits, 2021/10/29
- 170/180: gnu: gtkmm-3: Update to 3.24.5., guix-commits, 2021/10/29
- 110/180: gnu: Add docbook-xsl-ns., guix-commits, 2021/10/29
- 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