From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QC2ENiAiZmJFewEAbAwnHQ (envelope-from ) for ; Mon, 25 Apr 2022 06:22:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8GmJNSAiZmL9KwAAG6o9tA (envelope-from ) for ; Mon, 25 Apr 2022 06:22:56 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 78A2629F30 for ; Mon, 25 Apr 2022 06:22:56 +0200 (CEST) Received: from localhost ([::1]:46618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niqFT-0002lh-LX for larch@yhetil.org; Mon, 25 Apr 2022 00:22:55 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650860576; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+qhpZhVBdkMaTpHOl3hgT5PfWB+BUnJuBCHJQshwwjc=; b=WVB+FMEV4I5DMqREONk38IMxoqW3hlMD7D+/zAVJZtM3HE2PsGH7RcRF/zdmVQvnITn24j 7OPfsrpY9VKeovtXZ50AFTHQlTVBguRjTbhddA6GJLOgT1Tnm+MCNjHKALMvnm38ms1Dqs RN0Maid6RZq1NlfhQdbm1xN1DdUTHFnBvjvoISouHaPapjeHRlZfZfsYL3EHxvaQK1uWCX cY4nsUdBM9uR539d4bcoqvAGELCDAfoqqqUo+wi9DPHy7pAbHrT1iVYD8PlM7vUkLHLIyj V7PnctwS6sB7J2KOMIQI9tDZzNeJHf7StfcqY9VrFCGkvrC/LSczvSjO1RfTSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650860576; a=rsa-sha256; cv=none; b=YLqUAzR6D7h8OSkwFZW8PtAmZ3etD1OaAqy1V6YYD8q75iPvqAqhn9UAgpkw+rUIFaHXF5 M43whulsF1a7B9c7DmCgKbmxrTAF4u6HT+GFN9h2OzhRGEcxMTPc/R+TZsrL0cI6aKgcnI 1ZjqcSPp2IflS0gTHUfzXaXQGs2bXZjXH4XxT98p67X5RS9ONowziBE5+IYg8kTyZLxrsG Ge2ugFONzT2n6Rne7/LrYaF1ikujI0kQWM7MJGwI4HpDIw8oCJWxa8PdKzGqt9cObIb9iZ XZdLlwGgkExTlFNYPzuLUnROl6GtSYN+5Ucr+NCsj8a3/iIY1iWcc8+ANcJaog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=J9F4JdvZ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=J9F4JdvZ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 78A2629F30 X-Spam-Score: 7.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3RZMytIOHcm3 * 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") -- 2.34.0