From patchwork Wed Sep 7 18:34:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Garek Dyszel X-Patchwork-Id: 42288 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 BB7BE27BBEA; Wed, 7 Sep 2022 19:38:52 +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 7778227BBE9 for ; Wed, 7 Sep 2022 19:38:52 +0100 (BST) Received: from localhost ([::1]:45086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVzwp-0000ey-IZ for patchwork@mira.cbaines.net; Wed, 07 Sep 2022 14:38:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVztB-0005tR-On for guix-patches@gnu.org; Wed, 07 Sep 2022 14:35:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39338) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVztB-0005ZG-Ds for guix-patches@gnu.org; Wed, 07 Sep 2022 14:35:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVztA-00083H-9G for guix-patches@gnu.org; Wed, 07 Sep 2022 14:35:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57540] [RFC PATCH v2 13/19] gnu: Add python-pprintpp.* gnu/packages/python-xyz.scm (python-pprintpp): 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:04 +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.166257567130807 (code B ref 57540); Wed, 07 Sep 2022 18:35:04 +0000 Received: (at 57540) by debbugs.gnu.org; 7 Sep 2022 18:34:31 +0000 Received: from localhost ([127.0.0.1]:56246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzsc-00080p-JV for submit@debbugs.gnu.org; Wed, 07 Sep 2022 14:34:30 -0400 Received: from knopi.disroot.org ([178.21.23.139]:53662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzsa-00080h-LO for 57540@debbugs.gnu.org; Wed, 07 Sep 2022 14:34:29 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 17DB749FB4 for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:34:28 +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 CR8qYAAhDT21 for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:34:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662575662; bh=HprV3rasm0f+1iGUNKmDbme0tqHirvVG4rrHmDH3HIc=; h=From:To:Subject:Date; b=GVfmnt7IPjUgihJupcraPBRIt52gqMau+AO7wIYRC9502h1hXPIbMM3m0jVqJliDo NoKmyjxrOXrUhExBTygP2SOZg48cflBzH9F3aP7Ge4TaMnguKKX5jgAzb7HOTtLgcZ PrpctSc4dsfoz89HZ4iOo4xYVw2xCQ/I2gw+UQ7usEUvE3hGDwZ6wMAj6JqSCFf369 +jW/OGbCoM74Z53VCdVGzIpJYBP9ijQDq0rIT63r957jxeEfWTSydIwrM+26N0zsYk jmpSmBlrGnpblNvv/5EnkziBeJ85W+ee8FlsIGwXGlpYKyF41RMrmLP/HSs8HK4ODN zhNFHtDPoQBTg== Date: Wed, 07 Sep 2022 14:34:19 -0400 Message-ID: <87bkrrvxsk.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-pprintpp): New variable. --- gnu/packages/python-xyz.scm | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2c358b8c58..90bf269341 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30963,3 +30963,61 @@ (define-public python-hatch-fancy-pypi-readme (description "Fancy PyPI READMEs with Hatch") ;; MIT License (license license:expat))) + +(define-public python-pprintpp + ;; Git version tags are inaccurate for this package, too; use the + ;; bare commit. + (let ((commit "7ede6da1f3062bbfb32ee04353d675a5bff185e0") + (revision "1")) + (package + (name "python-pprintpp") + (version (git-version "0.3.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wolever/pprintpp") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0nk935m3ig8sc32laqbh698vwpk037yw27gd3nvwwzdv42jal2li")))) + (inputs (list python python-pypa-build python-hypothesis python-wheel + python-parameterized)) + (native-inputs (list python-pytest python-nose)) + (build-system python-build-system) + (arguments + ;; Copied directly from the build process for + ;; python-jsonschema-next. + (substitute-keyword-arguments (package-arguments python-jsonschema) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'build + (lambda _ + (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" + #$output + whl)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "test.py")))))))) + + (home-page "https://github.com/wolever/pprintpp") + (synopsis "Drop-in replacement for pprint that's actually pretty") + (description + "This package provides a drop-in replacement for pprint that's actually pretty.") + (license license:bsd-3))))