From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iIb7DsjDPWN/pQAAbAwnHQ (envelope-from ) for ; Wed, 05 Oct 2022 19:50:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eNURD8jDPWMQKgAA9RJhRA (envelope-from ) for ; Wed, 05 Oct 2022 19:50:00 +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 173D02317A for ; Wed, 5 Oct 2022 19:50:00 +0200 (CEST) Received: from localhost ([::1]:48642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1og8Wp-0001Og-OW for larch@yhetil.org; Wed, 05 Oct 2022 13:49:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og8U4-0001Ge-BR for guix-patches@gnu.org; Wed, 05 Oct 2022 13:47:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58922) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1og8U3-00072H-Tn for guix-patches@gnu.org; Wed, 05 Oct 2022 13:47:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1og8U3-000748-O0 for guix-patches@gnu.org; Wed, 05 Oct 2022 13:47:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58310] [PATCH 08/14] gnu: Add python-hatch-fancy-pypi-readme. References: <87h70iqji2.fsf@disroot.org> In-Reply-To: <87h70iqji2.fsf@disroot.org> Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 05 Oct 2022 17:47:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58310 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58310@debbugs.gnu.org Received: via spool by 58310-submit@debbugs.gnu.org id=B58310.166499201827129 (code B ref 58310); Wed, 05 Oct 2022 17:47:03 +0000 Received: (at 58310) by debbugs.gnu.org; 5 Oct 2022 17:46:58 +0000 Received: from localhost ([127.0.0.1]:57997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og8Ty-00073V-Cz for submit@debbugs.gnu.org; Wed, 05 Oct 2022 13:46:58 -0400 Received: from knopi.disroot.org ([178.21.23.139]:35586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og8Tw-00073L-1a for 58310@debbugs.gnu.org; Wed, 05 Oct 2022 13:46:56 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 723954C4A1 for <58310@debbugs.gnu.org>; Wed, 5 Oct 2022 19:46:55 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PmgYqvwR4Y0m for <58310@debbugs.gnu.org>; Wed, 5 Oct 2022 19:46:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1664992013; bh=025R1aB38/C3JDyWYaKZLXQgsKdO9htYG965VXryynw=; h=From:To:Subject:Date; b=PZdye2HXPhjhwnw5fBneQHKPSm8DM6TBcsS/ODyl6HUqVLPNltPe+Zk2XTwY4mU08 zCbwBweAHAFfzD62O/VwuF3snlJk3FMwIcS05P42AJ9NWDj0LV9XpGoAf+fOIE72cG KyH8ykN0PEXnV1jVw3+lkoVRDgu4Bj2DkiCEyzVWmaVKxZraNBg0e7TV7O2/RfaOBW bQIVzliRFendVM+HG/uvfVattYkQJ0Kf+gkK5AfFTJDdt+tS8oR3n1npBnzJOt0UZ4 5oDWRzQ92vFidquZFlIwlsdo2alEVULLvR2bdejxZf5PAABXgbozRh0nJ2l4K4WeiT VVqRmIzp42HWg== Date: Wed, 05 Oct 2022 13:46:50 -0400 Message-ID: <87zgeap3hx.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain 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" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches From: Garek Dyszel via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664992200; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=ALs2bRWggRBXpnDOTbcfSpbZSbLUjWav2f73trGcvGw=; b=pUef2uOS9f36kfY6m0sCTquO8up5s1k22YQ/aB2u4X76mbgPE1UHJUajmD1GnrgHmlAHRk aQhWpmkqQ3ZQg8UlwAXXqYnOAo+LPNEHO+k+h30SLRrd6T3jvDEJqUtZ7vX/fRDMyq5dOx 2I/BAKTUU3wnF9IfLa/KXKQqP64HjyoaV45Nj8X3fKmX/J8zV+FYit9iXAQbNp7CRHRVT6 77xgUNPUzduigzjnhD8cxf6ShLcMokf1WbMalsGHneNkBcNiiDzB4e5g1iutPhSj7PnAIS wsJl8Yh8d4d2Rm70elOywouvzJIvFkkSN9+iDfxKvQdPQGGUSZL0eYWDmmEdIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664992200; a=rsa-sha256; cv=none; b=uKiYXyfuk/O/lR9kRfgRoBCAyQHorzm83b30x2qRSHW2LR0tZQdfYaK97Htmuyw93zK3W/ 1gKve9zhMicQhzPvq+1/VwIiKWhRPfAY0bVQZx7kVrrJlW7TMMiaM9MG/P/tSi8a9EylNr yQnpcAX9fLXJYTtzE1XpEOxTEIYFc40Y4Qx3f+xQkyX2CzRfP2rjYCOfblJqOADFcg5gHu oNQm49xm0JglYDFVf6HJ3da297HOf9n8k6xPuv/4wcExzuYKq5+T8ikRbeG0Vm8xoHPwY4 Bt4wF9zmyKwyaewWZ0olgMCSGSwGsmOf+hPNjGGZq3ChpRDrzw2YyHgf7Ro+cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=PZdye2HX; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=PZdye2HX; dmarc=pass (policy=none) header.from=gnu.org; 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: 173D02317A X-Spam-Score: -2.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8UWiskACLoCu diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5739c759de..8ee2da0a07 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30074,6 +30074,74 @@ (define-public python-style a port of the chalk package for javascript.") (license license:expat))) +(define-public python-hatch-fancy-pypi-readme + (package + (name "python-hatch-fancy-pypi-readme") + (version "22.8.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "hatch_fancy_pypi_readme" version)) + (sha256 + (base32 + "1ykfz1sbz58xbjw5k9xpmn5r6ji16w8vag47j8f969bqy3w52ikx")))) + (build-system python-build-system) + (propagated-inputs (list python-tomli python-typing-extensions)) + (native-inputs (list python-pypa-build + python-pathspec + python-pluggy-1.0 + python-editables + python-hatch + python-hatchling-bootstrap + python-wheel + python-pytest + python-pytest-icdiff)) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'build 'disable-broken-tests + (lambda _ + ;; Skip the tests for "building". Guix already does this, + ;; so we don't need to test it for this package. + (chdir "tests") + (invoke "sed" "-i" + "11ipytest.skip('No need to test\ + building; guix does this already', allow_module_level=True)" + "test_end_to_end.py") + (chdir "../"))) + ;; XXX: PEP 517 manual build/install procedures copied from + ;; python-isort. + (replace 'build + (lambda _ + ;; ZIP does not support timestamps before 1980. + (setenv "SOURCE_DATE_EPOCH" "315532800") + (invoke "python" + "-m" + "build" + "--wheel" + "--no-isolation" + "."))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" + "--no-cache-dir" + "--no-input" + "install" + "--no-deps" + "--prefix" + (assoc-ref %outputs "out") + whl)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) + (home-page + "https://github.com/hynek/hatch-fancy-pypi-readme") + (synopsis "Syntax for styling PyPI READMEs") + (description + "Defines a syntax for the python-hatch build system, intended for styling +READMEs for PyPI.") + (license license:expat))) + (define-public python-sre-yield (package (name "python-sre-yield") -- 2.37.3