From patchwork Wed Sep 7 18:33:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Garek Dyszel X-Patchwork-Id: 42282 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 38BCE27BBEA; Wed, 7 Sep 2022 19:36:45 +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 E478E27BBE9 for ; Wed, 7 Sep 2022 19:36:44 +0100 (BST) Received: from localhost ([::1]:41696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVzum-0006Og-1u for patchwork@mira.cbaines.net; Wed, 07 Sep 2022 14:36:44 -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 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-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 © 2022 Marek Felšöci ;;; Copyright © 2022 Hilton Chain ;;; Copyright © 2022 Tomasz Jeneralczyk +;;; Copyright © 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, modify 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 instead. + (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 version.") + ;; MIT License + (license license:expat))))