From patchwork Wed Sep 7 18:34:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Garek Dyszel X-Patchwork-Id: 42284 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 EBAB527BBEC; Wed, 7 Sep 2022 19:37:25 +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=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 3C4FC27BBE9 for ; Wed, 7 Sep 2022 19:37:25 +0100 (BST) Received: from localhost ([::1]:53938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVzvQ-0007Jw-Cl for patchwork@mira.cbaines.net; Wed, 07 Sep 2022 14:37:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVztA-0005r3-B4 for guix-patches@gnu.org; Wed, 07 Sep 2022 14:35:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVzt9-0005Ud-Vv for guix-patches@gnu.org; Wed, 07 Sep 2022 14:35:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVzt9-00083A-S5 for guix-patches@gnu.org; Wed, 07 Sep 2022 14:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57540] [RFC PATCH v2 12/19] gnu: Add python-hatch-fancy-pypi-readme.* gnu/packages/python-xyz.scm (python-hatch-fancy-pypi-readme): New variable. References: <79d544f7d8ba64b631a6f0f1d2ef0b08@disroot.org> In-Reply-To: <79d544f7d8ba64b631a6f0f1d2ef0b08@disroot.org> Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Sep 2022 18:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57540 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57540@debbugs.gnu.org Received: via spool by 57540-submit@debbugs.gnu.org id=B57540.166257566030784 (code B ref 57540); Wed, 07 Sep 2022 18:35:03 +0000 Received: (at 57540) by debbugs.gnu.org; 7 Sep 2022 18:34:20 +0000 Received: from localhost ([127.0.0.1]:56243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzsS-00080S-41 for submit@debbugs.gnu.org; Wed, 07 Sep 2022 14:34:20 -0400 Received: from knopi.disroot.org ([178.21.23.139]:52044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzsQ-00080J-Kb for 57540@debbugs.gnu.org; Wed, 07 Sep 2022 14:34:19 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 13D3949FCF for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:34:18 +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 2e0g15u2BZg0 for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:34:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662575656; bh=GDJ8A0HgDX8SVDTjn/Y4ZhFYTfapRbQqFcb9Q8phFT0=; h=From:To:Subject:Date; b=UTlXnzpqlqv2p06gRYl0nba1+c3hQsfnWBMBzmlcU4x1Jlp6Ad0C84sF2O6+vreB2 7JgQvLj/UJnVCEl0KJG9kJdJKTxSy7tsTD+l6cKdQWqre9+zQzJfei2sOzZl9h48zW HNDM5ANGqJBiVB8/mJsCG7rOdsfihGplQdsTuoOrsX+BsIS670stc/wvQdaKqlkj1V 3i1lYYNgrJXLoNY7R8pOa6vavCk54cTrZ1p57NsCoem1kNUTpGQBG6dy5uU+OUv/3V 3r1vaGQoDkOzTbQcsF5HflD/o+FtGtWJKLNHJwhlH3L5mqUqKHv5yvPCUbRF4Gibim z40BoEsnSD4sg== Date: Wed, 07 Sep 2022 14:34:13 -0400 Message-ID: <87czc7vxsq.fsf@disroot.org> 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" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches X-Patchwork-Original-From: Garek Dyszel via Guix-patches via From: Garek Dyszel X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-hatch-fancy-pypi-readme): New variable. --- gnu/packages/python-xyz.scm | 66 +++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b5b319cfde..2c358b8c58 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30897,3 +30897,69 @@ (define-public python-hatch-vcs (description "Hatch plugin for versioning with your preferred VCS") ;; MIT License (license license:expat)))) + +(define-public python-hatch-fancy-pypi-readme + (package + (name "python-hatch-fancy-pypi-readme") + (version "22.3.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-hatchling python-tomli + python-typing-extensions)) + (native-inputs (list python + python-pypa-build + python-pathspec + python-pluggy-1.0 + python-editables + python-hatchling + 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 any Guix 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 "Fancy PyPI READMEs with Hatch") + (description "Fancy PyPI READMEs with Hatch") + ;; MIT License + (license license:expat)))