From patchwork Mon Apr 15 17:45:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Pieper X-Patchwork-Id: 63073 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 2044B27BBEB; Mon, 15 Apr 2024 21:02:23 +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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 4D14F27BBE9 for ; Mon, 15 Apr 2024 21:02:22 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwSWN-0007wU-CR; Mon, 15 Apr 2024 16:01:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwQPz-0005vp-1u for guix-patches@gnu.org; Mon, 15 Apr 2024 13:47:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwQPx-0007EP-6v; Mon, 15 Apr 2024 13:46:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwQQ3-0002uQ-5K; Mon, 15 Apr 2024 13:47:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70400] [PATCH 2/7] gnu: Add python-pytoolconfig. Resent-From: Jonathan Pieper Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Mon, 15 Apr 2024 17:47:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70400 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70400@debbugs.gnu.org Cc: Jonathan Pieper , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 70400-submit@debbugs.gnu.org id=B70400.171320317010654 (code B ref 70400); Mon, 15 Apr 2024 17:47:03 +0000 Received: (at 70400) by debbugs.gnu.org; 15 Apr 2024 17:46:10 +0000 Received: from localhost ([127.0.0.1]:38562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwQPB-0002ld-Tx for submit@debbugs.gnu.org; Mon, 15 Apr 2024 13:46:10 -0400 Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:51786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwQP7-0002jl-TA for 70400@debbugs.gnu.org; Mon, 15 Apr 2024 13:46:07 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4VJF2N1F0Qz9sT9 for <70400@debbugs.gnu.org>; Mon, 15 Apr 2024 19:45:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1713203148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6+1Pe3CfsSQJ102sZDYsaN3N+LSd75yOewxXEJ+r/3o=; b=D9eluTb3y2JIhMFV8CcBPx5ef424QF4YNGKFIrNf+z1/XOdEOHamzdyE1gYD9xeRIcvuNH LgVCybSn03ZEB1uJ7CzbYgDFf+RlyIVk6PSrSuRAHvOt3ETNtU+TMB3qt3qH+e3lRR+F/4 C/0YOSDVs4xNq103Gu95YncgVF0Psut82Skxg6wKfiFRBTKnUczza1VjlM9+BUP9xc/Wlq NZS+NLyn8SoxUX9qY1FJwnzf5CPCBvZWmCTQDYRRDmeZFmU5kgZMXUi9cMJ6jagWHJydk5 bqC3mNjBYQauHpxZRO3l8V8JOxzOGqi2MEOzDE6vijXke5Rpuaa9nD2qjN8OXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1713203146; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6+1Pe3CfsSQJ102sZDYsaN3N+LSd75yOewxXEJ+r/3o=; b=ZKEYaOJTdP97Gfc+rPO/fnRuvXFufR1Gb/vQaesM9E6KhviDnq3NnaQmp/5wLpfI76CVF0 eSLeLHLQCOjWXaHMW5ZYvmvEXvr35gZtvWyJyFH9AlktSFijJfHBQPcIuSpjsgJ/M9pIie x8THdD6LDhNOTyUHVkNN3Cr8UEilcFsmBREn299hwQZnw8xGBU1jsA1RYmsuziwSwnXr5N YITMEk1/bx/AGu8YNGEuYP3Af1uVt10IC0Mp4mYCFixqAhtMChEcXjNRRnCE7LgKnJD6X+ o/uMxoXOdbC4Ur0uQp93U7UfmtAxCkUJcva6s1Eu2bCjFBm8HMQvVbH7qA/zkQ== Date: Mon, 15 Apr 2024 19:45:05 +0200 Message-ID: <06a250000a633c62b5d806c8849b94ed7b84fb3d.1713203110.git.jpieper@mailbox.org> In-Reply-To: <7d0ec10d21258d9f858f9c9fe2cde132d4a06106.1713203110.git.jpieper@mailbox.org> References: <7d0ec10d21258d9f858f9c9fe2cde132d4a06106.1713203110.git.jpieper@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: fm7a7t1n95yghxdec8iycu8cuduxira8 X-MBO-RS-ID: 92b2cf7bd0855f8d169 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 15 Apr 2024 16:01:41 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Jonathan Pieper X-ACL-Warn: , Jonathan Pieper via Guix-patches X-Patchwork-Original-From: Jonathan Pieper via Guix-patches via From: Jonathan Pieper Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-pytoolconfig): New variable. --- gnu/packages/python-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9521119a84..27107c3d8f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -36309,6 +36309,58 @@ (define-public python-zeroc-ice-3.6 (base32 "0mikjfvq26kh8asnn9v55z41pap4c5ypymqnwwi4xkavc3mzyda2")))))) +(define-public python-pytoolconfig + (package + (name "python-pytoolconfig") + (version "1.2.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pytoolconfig" version)) + (sha256 + (base32 "18isxi4ijarl949d0zmf0b4606r6hihpi3p5yb7763m4c7ra24i5")))) + (build-system pyproject-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (add-after 'unpack 'update-license + (lambda _ + (substitute* "pyproject.toml" + (("license-expression = (\"[^\"]*\")" all license) + (string-append "license = {text = " license "}"))))) + (add-after 'unpack 'remove-mypy + (lambda _ + (substitute* "pyproject.toml" + (("^.*mypy.*") + "") + (("strict = true") + "")))) + (add-after 'unpack 'use-pdm-backend-instead-of-pep517 + (lambda _ + (substitute* "pyproject.toml" + (("pdm-pep517") + "pdm-backend") + (("pdm\\.pep517\\.api") + "pdm.backend")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; Disable failing test. + (invoke "python" "-m" "pytest" "-k" + "not test_documentation"))))))) + (native-inputs (list python-pdm-backend + python-tomli + python-pytest + python-docutils + python-sphinx + python-tabulate)) + (propagated-inputs (list python-appdirs)) + (home-page "https://github.com/bagel897/pytoolconfig") + (synopsis "Python Tool Configuration") + (description + "This module manages configuration for python tools, +such as rope and add support for a pyproject.toml configuration file.") + (license license:lgpl3+))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar