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 QPW3Idho82JHQgEAbAwnHQ (envelope-from ) for ; Wed, 10 Aug 2022 10:14:16 +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 WAfeIdho82JQlwAA9RJhRA (envelope-from ) for ; Wed, 10 Aug 2022 10:14:16 +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 3CDF71BF58 for ; Wed, 10 Aug 2022 10:14:16 +0200 (CEST) Received: from localhost ([::1]:40478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLgr1-0000Lf-3q for larch@yhetil.org; Wed, 10 Aug 2022 04:14:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLgqo-0000IL-IZ for guix-patches@gnu.org; Wed, 10 Aug 2022 04:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLgqo-00088g-9r for guix-patches@gnu.org; Wed, 10 Aug 2022 04:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLgqo-0007B8-4v for guix-patches@gnu.org; Wed, 10 Aug 2022 04:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57101] [PATCH] gnu: python-typer: Update to 0.6.1. Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Aug 2022 08:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57101 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57101@debbugs.gnu.org Cc: Tanguy Le Carrour X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166011920427540 (code B ref -1); Wed, 10 Aug 2022 08:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Aug 2022 08:13:24 +0000 Received: from localhost ([127.0.0.1]:45959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLgqB-0007A8-Rg for submit@debbugs.gnu.org; Wed, 10 Aug 2022 04:13:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:55264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLgq6-00079w-L4 for submit@debbugs.gnu.org; Wed, 10 Aug 2022 04:13:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLgq6-0008Ee-Cq for guix-patches@gnu.org; Wed, 10 Aug 2022 04:13:18 -0400 Received: from relay11.mail.gandi.net ([2001:4b98:dc4:8::231]:51287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLgq3-000873-P3 for guix-patches@gnu.org; Wed, 10 Aug 2022 04:13:18 -0400 Received: (Authenticated sender: tanguy@bioneland.org) by mail.gandi.net (Postfix) with ESMTPSA id 99D25100002; Wed, 10 Aug 2022 08:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bioneland.org; s=gm1; t=1660119192; 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; bh=YFvGIfPklYGucafbt9PiK6LCZbpSNZVGowNeFR+DkiA=; b=GwG8a9VJJyA6hyDXWw+49Zjk9FeIQwq4f9IruOKOPkWqNBZPkIzPFEvzZa6jHSbAGSZh4S FJxVMVVVRWxeNsPS3h0Wqwz/gl27Rq9/xJCrV44ynA138Q6IT02Qb/eNtSQ4THc5wWFo8o mtaLTju58UJDadbVqw4xkoalEAnhn7N1+z1Z0X42IqhdagY5S6e9ek3SssRysP9342aD1/ fNUy0WEB5qp9KPfyjd+LLL9oae1SNqw0fxSSVB483lVGztI+XZ0CebFYPH4+uolN/qGQHk msi7hu61hVvS8LRkqZsaPV/yb+qPgdMpqkKL/jqAhWQocMQuiaoVL8XxqWtTmQ== From: Tanguy Le Carrour Date: Wed, 10 Aug 2022 10:12:53 +0200 Message-Id: <20220810081253.7008-1-tanguy@bioneland.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4b98:dc4:8::231; envelope-from=tanguy@bioneland.org; helo=relay11.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1660119256; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=YFvGIfPklYGucafbt9PiK6LCZbpSNZVGowNeFR+DkiA=; b=owzMg24c/N8yzrlJhuGWvl5CCqYjUIBQihzAPmVJ2btW22ZqViZBtAyBWZs31gxPInKmaF Kg5KRIpVWVWvHWTl5XUU6Ajx085H7z6sC6QJ9wSmEncAZ4zMayCqdOVqm4M5vVyzi1F2MZ vzGJRCrnA/EHvci+sV4lB2w7lzchMpbCyVlkhQgd8pUmJNrzTSMmg2nqolchCkvd1Z1mTD Nh9R+4u11wE1yTqLIW/5o2jd692HlyGtMe5CpmAPzuyWkPVuYEPzI/DAmJw2HseuziCqeT soa9aXNygyMcNWU19VWb6qwXnZRRmhznBZK5zkrjO4K5242IwZIsssTfnqXTYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660119256; a=rsa-sha256; cv=none; b=k5KZhWZ+1IEy48A6UF8kaMxxhimR1HFV7Up3cQkpI4o2EjjPKV3HszHs0CNthT4zU83Rrj F6+mRzMBZpb77E9iFeiij6UYJ3T0Av2aPScMVsFr33OIAz222DupNnkhBBxd05wWQiXFLa fQsm438CCIK/KP/RNHgr15cMYdBdgM5IGGqxjsZ0IBaWdkoaZLXBq2uNp0C+hs0rghRJWh FmtAL2x9zTL2qxW0w5FrvACgbY8kGEBp89azbA7l84xMPOByTnIwjzM443PgPbA2QOOdk0 yUZWral9mgiGK1pTQGE6EtgmfIfvBUAY7TEvDoK1sqbqaPvZFhNJwT0LOtvZYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bioneland.org header.s=gm1 header.b=GwG8a9VJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=bioneland.org (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: 6.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bioneland.org header.s=gm1 header.b=GwG8a9VJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=bioneland.org (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: 3CDF71BF58 X-Spam-Score: 6.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: eGCI//BmK5bX * gnu/packages/python-xyz.scm (python-typer): Update to 0.6.1. [source]: Use GIT-FETCH. [arguments]: Build from source with flit. [native-inputs]: Add python-flit and python-rich. --- gnu/packages/python-xyz.scm | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d18959889e..196659417c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -21437,15 +21437,16 @@ (define-public python-typed-ast (define-public python-typer (package (name "python-typer") - (version "0.3.2") + (version "0.6.1") (source (origin - ;; Building `python-typer` from the git repository requires the `flit-core` - ;; Python package that is not installed by `python-flit`. - (method url-fetch) - (uri (pypi-uri "typer" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/tiangolo/typer") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal")))) + (base32 "1knv353qhkl2imav3jfp6bgq47m8wkkqhq1dzmqg2sv8rsy7zgl7")))) (build-system python-build-system) (arguments `(#:phases @@ -21457,6 +21458,18 @@ (define-public python-typer (substitute* "tests/test_completion/test_completion.py" (("\"bash\"") (string-append "\"" (which "bash") "\"")) (("\"/bin/bash\"") (string-append "\"" (which "bash") "\""))))) + (replace 'build + (lambda _ + (invoke "flit" "build"))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (let ((out (assoc-ref outputs "out"))) + (for-each (lambda (wheel) + (format #true wheel) + (invoke "python" "-m" "pip" "install" + wheel (string-append "--prefix=" out))) + (find-files "dist" "\\.whl$"))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? @@ -21478,7 +21491,8 @@ (define-public python-typer (propagated-inputs (list python-click)) (native-inputs - (list python-coverage python-pytest python-shellingham)) + (list python-coverage python-flit python-pytest python-rich + python-shellingham)) (home-page "https://github.com/tiangolo/typer") (synopsis "Typer builds CLI based on Python type hints") -- 2.37.1