[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
72/166: gnu: Add python-scikit-build.
From: |
guix-commits |
Subject: |
72/166: gnu: Add python-scikit-build. |
Date: |
Tue, 19 Apr 2022 09:17:59 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython+polyglossia
in repository guix.
commit c2e6f70c884f87c54eaf364b5750f0c7bb1cba5c
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Apr 6 17:22:44 2022 -0400
gnu: Add python-scikit-build.
* gnu/packages/python-xyz.scm (python-scikit-build): New variable.
---
gnu/packages/python-xyz.scm | 87 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dc508df4a3..e1ab0ab048 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -187,6 +187,7 @@
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages networking)
#:use-module (gnu packages ncurses)
+ #:use-module (gnu packages ninja)
#:use-module (gnu packages openstack)
#:use-module (gnu packages pcre)
#:use-module (gnu packages pdf)
@@ -28227,6 +28228,92 @@ and frame grabber interface.")
;; Yet another variant of the X/MIT license.
"https://github.com/python-pillow/Sane/blob/master/COPYING"))))
+(define-public python-scikit-build
+ (package
+ (name "python-scikit-build")
+ (version "0.14.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "scikit-build" version))
+ (sha256
+ (base32 "1wx1m9vnxnnz59lyaisgyxldp313kciyd4af8lf112vb8vbjy9yk"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-cmake-executable
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "skbuild/constants.py"
+ (("^(CMAKE_DEFAULT_EXECUTABLE = ).*" _ head)
+ (format #f "~a ~s~%" head
+ (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
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; These tests attempt to pull dependencies from the Internet.
+ (delete-file "tests/test_distribution.py")
+ (delete-file "tests/test_pep518.py")
+ (invoke "pytest" "-vv"
+ "-n" (number->string (parallel-job-count))
+ "-k" (string-append
+ ;; These tests attempt to write to read-only
+ ;; Python install directory.
+ "not test_install_command "
+ "and not test_test_command "
+ "and not test_hello_develop "
+ ;; These sdist-related tests fail for unknown
+ ;; reasons (see:
+ ;;
https://github.com/scikit-build/scikit-build/issues/689).
+ "and not test_hello_sdist_with_base "
+ "and not test_manifest_in_sdist "
+ "and not test_hello_sdist "
+ "and not test_sdist_with_symlinks "
+ ;; The reason for the failure of this one is
+ ;; also unknown.
+ "and not test_generator_cleanup")))))
+ (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
+ (list cmake-minimal
+ gfortran
+ git-minimal
+ ninja
+ python-coverage
+ python-cython
+ python-mock
+ python-packaging
+ python-path
+ python-pypa-build
+ python-pytest
+ python-pytest-cov
+ python-pytest-mock
+ python-pytest-virtualenv
+ python-pytest-xdist
+ python-requests
+ python-setuptools-scm
+ python-wheel))
+ (propagated-inputs
+ (list python-distro python-packaging python-wheel))
+ (home-page "https://github.com/scikit-build/scikit-build")
+ (synopsis "Build system generator for Python C/C++/Fortran/Cython
extensions")
+ (description "Scikit-build is an improved build system generator for
+CPython C/C++/Fortran/Cython extensions. It has support for additional
+compilers, build systems, cross compilation, and locating dependencies and
+determining their build requirements. The scikit-build package is
+fundamentally just glue between the @code{setuptools} Python module and
+CMake.")
+ (license license:expat)))
+
(define-public python-screenkey
(package
(name "python-screenkey")
- 84/166: gnu: Add python-ufo2ft., (continued)
- 84/166: gnu: Add python-ufo2ft., guix-commits, 2022/04/19
- 48/166: gnu: python-pytest-black: Update to 0.3.12., guix-commits, 2022/04/19
- 55/166: gnu: Add python-pytest-enabler., guix-commits, 2022/04/19
- 57/166: gnu: Add python-pip-run., guix-commits, 2022/04/19
- 59/166: gnu: Add python-pytest-perf., guix-commits, 2022/04/19
- 61/166: gnu: python-faker: Update to 13.3.4 and honor TESTS?., guix-commits, 2022/04/19
- 62/166: gnu: Add python-pytest-randomly., guix-commits, 2022/04/19
- 64/166: gnu: Add psautohint., guix-commits, 2022/04/19
- 65/166: gnu: Add python-ordered-set., guix-commits, 2022/04/19
- 71/166: gnu: python-pytest-cov: Update to 3.0.0., guix-commits, 2022/04/19
- 72/166: gnu: Add python-scikit-build.,
guix-commits <=
- 77/166: gnu: Add python-fonttools-next., guix-commits, 2022/04/19
- 78/166: gnu: Add python-afdko., guix-commits, 2022/04/19
- 79/166: gnu: Add python-cffsubr., guix-commits, 2022/04/19
- 81/166: gnu: Add python-skia-pathops., guix-commits, 2022/04/19
- 85/166: gnu: Add python-sfdlib., guix-commits, 2022/04/19
- 88/166: gnu: Add texlive-bidi., guix-commits, 2022/04/19
- 93/166: gnu: python-black: Update to 22.3.0., guix-commits, 2022/04/19
- 94/166: gnu: pylint: Run tests in parallel., guix-commits, 2022/04/19
- 26/166: gnu: Add python-mutatormath., guix-commits, 2022/04/19
- 27/166: gnu: Add python-fontpens-bootstrap., guix-commits, 2022/04/19