From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 GMmkGqPkGGMxgQAAbAwnHQ (envelope-from ) for ; Wed, 07 Sep 2022 20:36:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YLTqGaPkGGN0XgEAG6o9tA (envelope-from ) for ; Wed, 07 Sep 2022 20:36:19 +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 18DF6195F4 for ; Wed, 7 Sep 2022 20:36:19 +0200 (CEST) Received: from localhost ([::1]:41696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVzuL-0006Og-V3 for larch@yhetil.org; Wed, 07 Sep 2022 14:36:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVzsD-0004j6-Ju for guix-patches@gnu.org; Wed, 07 Sep 2022 14:34:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVzsD-0005GR-AC for guix-patches@gnu.org; Wed, 07 Sep 2022 14:34:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVzsD-0007zP-5q for guix-patches@gnu.org; Wed, 07 Sep 2022 14:34:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57540] [RFC PATCH v2 09/19] gnu: Add python-version.* gnu/packages/python-xyz.scm (python-version): 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:34:05 +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.166257564330683 (code B ref 57540); Wed, 07 Sep 2022 18:34:05 +0000 Received: (at 57540) by debbugs.gnu.org; 7 Sep 2022 18:34:03 +0000 Received: from localhost ([127.0.0.1]:56228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzsA-0007yg-To for submit@debbugs.gnu.org; Wed, 07 Sep 2022 14:34:03 -0400 Received: from knopi.disroot.org ([178.21.23.139]:48850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzs9-0007yD-2T for 57540@debbugs.gnu.org; Wed, 07 Sep 2022 14:34:01 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6BD0349FB4 for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:34:00 +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 jt_RDiw9C1QE for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:33:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662575639; bh=pzaUAEihUq+vt9h8uT4b4A0W5/wyGE16DMIfROJK6Lk=; h=From:To:Subject:Date; b=fPuCdE6TMpyIV2HZrvDqUwXKlfwu5A4o8sbQbhgdhJ2IvgnAdNZyYyxajuHbhtrRc TYn9W/AHezOq8mjkVhBGQpvz6PkUyCnsibrrbg8RQMorYBRDswkT27Z1jYhWkvEYA0 rsEnYJbUDjPo0HodgkuKQUXKF9rGUEzv/AGB+C0OcGgpsNSR7rfj2c4FGvM6t0A9Ib z3+RWyR8CZjtIzT4lMNaV/bnNW5R9lhXDc06mkOrzDgo/4KubIY+Sb/QRUXR98XgLU yVE8rGi1tyLgz/pxi9fWk8QhZxtVjFnWEGXSTbT2PeY0RHsojdPz9vcklrXjIiEIRh wI2ZpHaRxastw== Date: Wed, 07 Sep 2022 14:33:55 -0400 Message-ID: <87h71jvxt8.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-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=1662575779; 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: content-transfer-encoding:content-transfer-encoding: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=iux3vVegtL0rrmYy04qGViSnRXMYOrIF1LvszkJBKgk=; b=RNdfgN/cKWz9DPyQJBcojrIHENB6aYb8kzRkqV/PoNh0wCwEyJ0Jdmj5FxB+ltf+Pzhlgd 5Sak0VP5HlZUtTSDaVLmqWrECVHrwr1JOr1Ug7O5F33fyHhxLQ5OhuY41n+l6VfXqPOz1x iqnJMO/ACp0j1emnbxMzZPNLfSYIOJ4L4bRfUMg2KVTB8yCo74Ej6Eg8fV5EHsslx7+d6S Gn9dkRCIVi8O2Y2AF8VFJSICjiz4/GrjWF++673xdUjPvjTqH/89W9B+A/O72xrSXClQBW BaMfC2iYuLsynQLS73IqnY3X0KGmcGcKQDo4AIYWTXiNOW80r6Y5ptnLe85/jw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662575779; a=rsa-sha256; cv=none; b=cJfebBo1muJi4ILTx4MxDSEils4oG9bzPMEWQVP89pQHvteYn+ilIUjW5gjVruIKvwbSsN jsiOn++Tx11C5QgBusvvv0hSY0JK0Qjck5s8OoYs3bqAOkSIcaxG2wwW0yZGJA1djKeFyZ i4LeWRLVwegxnP/v8fR1SUG2Zod/+lRLrCBKo44xwJHx5lbqcq677EwX6I+TlbLGeC5P1N Owjz57aLv3z96Alcs9NuTQIKGGHTrLH+Hx37JG2OojqSKOkCSSCUo4lf6eWXk+TKh6/Mfo rx2pW44JoKqtLZqMmBKi57zBCs70iU/sv/7isk0/L5CO/loXankxKJAYUTFfzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=fPuCdE6T; 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.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=fPuCdE6T; 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: 18DF6195F4 X-Spam-Score: -2.78 X-Migadu-Scanner: scn1.migadu.com X-TUID: MXnskAITHdvf * gnu/packages/python-xyz.scm (python-version): New variable. --- gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a73f07ece3..cc5b85c3a1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -128,6 +128,7 @@ ;;; Copyright =C2=A9 2022 Marek Fel=C5=A1=C3=B6ci ;;; Copyright =C2=A9 2022 Hilton Chain ;;; Copyright =C2=A9 2022 Tomasz Jeneralczyk +;;; Copyright =C2=A9 2022 Garek Dyszel ;;; ;;; This file is part of GNU Guix. ;;; @@ -30746,3 +30747,27 @@ (define-public python-lief "@code{python-lief} is a cross platform library which can parse, modi= fy and abstract ELF, PE and MachO formats.") (license license:asl2.0))) + +(define-public python-version + ;; No version tags available in the git repo; just using bare commit ins= tead. + (let ((commit "5232eea250ab72cc5cb72b0b75efb35d2192b906") + (revision "1")) + (package + (name "python-python-version") + (version (git-version "0.0.2" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/halfak/python_version") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0w210559ypdynlj9yn40m9awzkaknwrf682i99hswl7h66sdgh0h"))= )) + (build-system python-build-system) + (home-page "https://gitlab.com/halfak/python_version") + (synopsis "Provides a simple utility for checking the python version= ") + (description + "This package provides a simple utility for checking the python ver= sion.") + ;; MIT License + (license license:expat)))) --=20 2.37.2