[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
33/77: gnu: Add python-setuptools-scm-next.
From: |
guix-commits |
Subject: |
33/77: gnu: Add python-setuptools-scm-next. |
Date: |
Thu, 21 Nov 2024 10:35:58 -0500 (EST) |
z572 pushed a commit to branch master
in repository guix.
commit 6d6f16f4b2069f288d0eb9deff61c74a18f4d725
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Tue Aug 27 16:06:19 2024 +0800
gnu: Add python-setuptools-scm-next.
* gnu/packages/python-build.scm (python-setuptools-scm-next): New variable.
Change-Id: Ic6b95ed437f95c25c165de3d51732154e2bd954a
---
gnu/packages/python-build.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 5b46272bde..47c9c5a9ff 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -11,6 +11,7 @@
;;; Copyright © 2022 Garek Dyszel <garekdyszel@disroot.org>
;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
;;; Copyright © 2024 David Elsing <david.elsing@posteo.net>
+;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -677,6 +678,37 @@ system, then @code{flit_core} to build the package.")
them as the version argument or in a SCM managed file.")
(license license:expat)))
+(define-public python-setuptools-scm-next
+ (package
+ (inherit python-setuptools-scm)
+ (name "python-setuptools-scm")
+ (version "8.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "setuptools_scm" version))
+ (sha256
+ (base32
"19y84rzqwb2rd88bjrlafrhfail2bnk6apaig8xskjviayva3pj2"))))
+ (build-system pyproject-build-system)
+ (arguments (list
+ ;; pyproject-build-system will error handle forms such as
+ ;; "module:object", so we set it.
+ #:build-backend "setuptools.build_meta"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'setenv
+ (lambda _
+ ;; pyproject-build-system ignore backend-path,
+ ;; and __import__ ignore GUIX_PYTHONPATH, so set
+ ;; PYTHONPATH.
+ (setenv "PYTHONPATH"
+ (string-append
+ (getcwd)
+ ":"
+ (getcwd) "/src:"
+ (getenv "GUIX_PYTHONPATH"))))))
+ #:tests? #f)) ;avoid extra dependencies such as pytest
+ (native-inputs (list python-setuptools))))
+
(define-public python-editables
(package
(name "python-editables")
- branch master updated (b2bd56f8fe -> 3ef5e20bcd), guix-commits, 2024/11/21
- 06/77: gnu: qtwebsockets: Update to 6.7.2., guix-commits, 2024/11/21
- 07/77: gnu: qtsensors: Update to 6.7.2., guix-commits, 2024/11/21
- 08/77: gnu: qtshadertools: Update to 6.7.2., guix-commits, 2024/11/21
- 09/77: gnu: qtmultimedia: Update to 6.7.2., guix-commits, 2024/11/21
- 11/77: gnu: qtserialport: Update to 6.7.2., guix-commits, 2024/11/21
- 16/77: gnu: qttools: Update to 6.7.2., guix-commits, 2024/11/21
- 18/77: gnu: qtscxml: Update to 6.7.2., guix-commits, 2024/11/21
- 19/77: gnu: qtpositioning: Update to 6.7.2., guix-commits, 2024/11/21
- 31/77: gnu: qtconnectivity: Rename to qtconnectivity-5., guix-commits, 2024/11/21
- 33/77: gnu: Add python-setuptools-scm-next.,
guix-commits <=
- 05/77: gnu: qtdeclarative: Update to 6.7.2., guix-commits, 2024/11/21
- 04/77: gnu: qtimageformats: Update to 6.7.2., guix-commits, 2024/11/21
- 10/77: gnu: qtwayland: Update to 6.7.2., guix-commits, 2024/11/21
- 25/77: gnu: abseil-cpp: Update to 20240722.0., guix-commits, 2024/11/21
- 37/77: gnu: python-pyqt-6: Update to 6.7.1., guix-commits, 2024/11/21
- 28/77: gnu: Add icu4c-75., guix-commits, 2024/11/21
- 21/77: gnu: qtspeech: Update to 6.7.2., guix-commits, 2024/11/21
- 29/77: gnu: qtwebengine: Update to 6.7.2., guix-commits, 2024/11/21
- 36/77: gnu: python-pyqt-builder: Update to 1.16.4., guix-commits, 2024/11/21
- 39/77: gnu: python-pyqt5-sip: Update to 12.15.0., guix-commits, 2024/11/21