aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-15 23:41:14 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-19 20:12:13 -0400
commit5106860692827153c1dd927c0477f92f023bcc40 (patch)
treed9e5e6a118c24c8ff3ebd8e004eafecb22101d9b
parentdc2f26edae0e367d4f0f495b79ebc5f79bb80465 (diff)
downloadguix-5106860692827153c1dd927c0477f92f023bcc40.tar.gz
guix-5106860692827153c1dd927c0477f92f023bcc40.zip
gnu: python-flit-scm: Update to 1.7.0.
* gnu/packages/python-build.scm (python-flit-scm): Update to 1.7.0. [build-system]: Use pyproject-build-system. [arguments]: Remove #:phases. Add #:build-backend. [native-inputs]: Delete field.
-rw-r--r--gnu/packages/python-build.scm44
1 files changed, 10 insertions, 34 deletions
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 72e522f0b8..161d334051 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -573,45 +573,21 @@ specified by PEP 517, @code{flit_core.buildapi}.")
(define-public python-flit-scm
(package
(name "python-flit-scm")
- (version "1.6.2")
+ (version "1.7.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "flit_scm" version))
(sha256
(base32
- "0p3lj2g1643m2dm14kihvfb6gn6jviglhm3dzdpn2c8zpqs17svg"))))
- (build-system python-build-system)
- (arguments
- (list
- #:tests? #f ;no test suite
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'relax-setuptools-scm-version
- (lambda _
- (substitute* "pyproject.toml"
- (("setuptools_scm~=6.4")
- "setuptools_scm>=6.3"))))
- ;; XXX: PEP 517 manual build/install procedures copied from
- ;; python-isort.
- (replace 'build
- (lambda _
- ;; ZIP does not support timestamps before 1980.
- (setenv "SOURCE_DATE_EPOCH" "315532800")
- (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output whl)))))))
- (native-inputs
- (list python-pypa-build
- python-flit-core
- python-setuptools-scm
- python-tomli))
- (propagated-inputs
- (list python-flit-core
- python-setuptools-scm
- python-tomli))
+ "1ckbkykfr7f7wzjzgh0gm7h6v3pqzx2l28rw6dsvl6zk4kxxc6wn"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f ;to avoid extra dependencies
+ ;; flit-scm wants to use flit-core, which it renames to
+ ;; 'buildapi', but that isn't found even when adding the
+ ;; current directory to PYTHONPATH. Use setuptools'
+ ;; builder instead.
+ #:build-backend "setuptools.build_meta"))
+ (propagated-inputs (list python-flit-core python-setuptools-scm python-tomli))
(home-page "https://gitlab.com/WillDaSilva/flit_scm")
(synopsis "PEP 518 build backend combining flit_core and setuptools_scm")
(description "This package provides a PEP 518 build backend that uses