From patchwork Mon Apr 25 03:56:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 38864 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3AA2827BBEA; Mon, 25 Apr 2022 05:23:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AC87827BBE9 for ; Mon, 25 Apr 2022 05:23:15 +0100 (BST) Received: from localhost ([::1]:46618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niqFm-0002lh-PT for patchwork@mira.cbaines.net; Mon, 25 Apr 2022 00:23:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nipvZ-00080G-0W for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:25 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nipvW-0001nA-HI for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:19 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nipvW-0008EX-F1 for guix-patches@gnu.org; Mon, 25 Apr 2022 00:02:18 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55104] [PATCH 072/232] gnu: Add python-scikit-build. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Apr 2022 04:02:18 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55104@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 55104-submit@debbugs.gnu.org id=B55104.165085931931328 (code B ref 55104); Mon, 25 Apr 2022 04:02:18 +0000 Received: (at 55104) by debbugs.gnu.org; 25 Apr 2022 04:01:59 +0000 Received: from localhost ([127.0.0.1]:60864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nipvC-000898-SU for submit@debbugs.gnu.org; Mon, 25 Apr 2022 00:01:59 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:35338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niptv-0007rz-T4 for 55104@debbugs.gnu.org; Mon, 25 Apr 2022 00:00:44 -0400 Received: by mail-qk1-f171.google.com with SMTP id y129so9970599qkb.2 for <55104@debbugs.gnu.org>; Sun, 24 Apr 2022 21:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+qhpZhVBdkMaTpHOl3hgT5PfWB+BUnJuBCHJQshwwjc=; b=J9F4JdvZTxnTwP1wM9aqUj/1q+UNXcEgapf2IvjaG10lv66zpSQzVZs1aT9g7InpuQ EQFcSBt77bZt7/G/NqrINALT+0xqvvSPbbvMAhELHK3syFeafrSQvXJpgaNuYisLaMHa qKM06UCtB3/bTWOkoCGMyE6s24ncEK7I+vFBix209HPujWC4iJq7aBP0swyTPWNPmFjO 1znFp05YnZwcMx33h+osalU7VOU6PTjWEI3C3xCpYQgQ5dJOAVGlxD1HTuEvrBid+LFq gsTe/MEFMMNaH3xPrvz0F/u6cWJsCYap30tDfENMEmBzVp8W0iZumW559yqPucFf3mNu RNZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+qhpZhVBdkMaTpHOl3hgT5PfWB+BUnJuBCHJQshwwjc=; b=SUREb6qUkATsiKBBa1RdY9nG2AoA1CrdAea/w6InsqP0rVEgcgKoQ/Rdo7syO8Trst sJ/2P/6wnGTH3uVAAcdljPlBi9MuAQuYxCpoolxifNTVvBVQiQMRIPAGOVwxRjVcm2Nn O3WuhgDyZI+Yyjqj4dqAgWQATi1tpGhj0Thvs4+HOveS9lieSfq47j95Kxhp5jrza0F9 qtuWgYh6c3TJpMZ4t1rN2kiw3nSkWvT9qdG4dc6Hqr5lvyhjQxI3en2IJIgfX+lmT7h0 V5d4eqep9/8JHd6xjiTVphq0MMRXXohk046SY8fPZPgTt6oW+CzPuLbOw9guiifwgBoa 7bfA== X-Gm-Message-State: AOAM53388r9+satNsBQRKaeP4Odit9tZD0cC8HKg0vZlMTlfxarN4uiy nG7AzviIDT1YHKDPvOaezMzJtxD7IJGBJw== X-Google-Smtp-Source: ABdhPJz5l6NtfiKfnspjBLU//MZIPdqoYd9IfX8ztHql6ByPzRo3Y63LUQXHDYEwhGu7boBlo0J9Vg== X-Received: by 2002:a05:620a:2681:b0:67e:933e:54b6 with SMTP id c1-20020a05620a268100b0067e933e54b6mr9117930qkp.428.1650859234233; Sun, 24 Apr 2022 21:00:34 -0700 (PDT) Received: from localhost.localdomain (dsl-150-232.b2b2c.ca. [66.158.150.232]) by smtp.gmail.com with ESMTPSA id w82-20020a376255000000b0069ee3f0ae63sm4478142qkb.45.2022.04.24.21.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 21:00:33 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 24 Apr 2022 23:56:38 -0400 Message-Id: <20220425035918.25683-72-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220425035918.25683-1-maxim.cournoyer@gmail.com> References: <20220425035918.25683-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 @@ (define-module (gnu packages python-xyz) #: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 @@ (define-public python-sane ;; 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")