me
/
guix
Archived
1
0
Fork 0

gnu: python-scikit-build: Switch to pyproject-build-system.

* gnu/packages/python-xyz.scm (python-scikit-build)[build-system]: Set to
PYPROJECT-BUILD-SYSTEM.
[arguments]: Remove obsolete phases.
[native-inputs]: Remove PYTHON-PYPA-BUILD and PYTHON-WHEEL.
Marius Bakke 2022-10-21 00:41:04 +02:00
parent 9ffbcb8a06
commit 7b83b3a77c
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 3 additions and 15 deletions

View File

@ -28050,7 +28050,7 @@ and frame grabber interface.")
(uri (pypi-uri "scikit-build" version)) (uri (pypi-uri "scikit-build" version))
(sha256 (sha256
(base32 "1wx1m9vnxnnz59lyaisgyxldp313kciyd4af8lf112vb8vbjy9yk")))) (base32 "1wx1m9vnxnnz59lyaisgyxldp313kciyd4af8lf112vb8vbjy9yk"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:phases #:phases
@ -28061,11 +28061,6 @@ and frame grabber interface.")
(("^(CMAKE_DEFAULT_EXECUTABLE = ).*" _ head) (("^(CMAKE_DEFAULT_EXECUTABLE = ).*" _ head)
(format #f "~a ~s~%" head (format #f "~a ~s~%" head
(search-input-file inputs "bin/cmake")))))) (search-input-file inputs "bin/cmake"))))))
;; XXX: PEP 517 manual build copied from python-isort.
(replace 'build
(lambda _
(setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
@ -28091,12 +28086,7 @@ and frame grabber interface.")
;; nondeterministically (see: ;; nondeterministically (see:
;; https://github.com/scikit-build/scikit-build/issues/711). ;; https://github.com/scikit-build/scikit-build/issues/711).
"and not test_generator_cleanup " "and not test_generator_cleanup "
"and not test_generator_selection "))))) "and not test_generator_selection "))))))))
(replace 'install
(lambda _
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" #$output whl)))))))
(native-inputs (native-inputs
(list cmake-minimal (list cmake-minimal
gfortran gfortran
@ -28107,15 +28097,13 @@ and frame grabber interface.")
python-mock python-mock
python-packaging python-packaging
python-path python-path
python-pypa-build
python-pytest python-pytest
python-pytest-cov python-pytest-cov
python-pytest-mock python-pytest-mock
python-pytest-virtualenv python-pytest-virtualenv
python-pytest-xdist python-pytest-xdist
python-requests python-requests
python-setuptools-scm python-setuptools-scm))
python-wheel))
(propagated-inputs (propagated-inputs
(list python-distro python-packaging python-wheel)) (list python-distro python-packaging python-wheel))
(home-page "https://github.com/scikit-build/scikit-build") (home-page "https://github.com/scikit-build/scikit-build")