From patchwork Fri Apr 8 14:32:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Prat X-Patchwork-Id: 38418 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 822B227BBE9; Fri, 8 Apr 2022 16:49:37 +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 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 F3FCB27BBEA for ; Fri, 8 Apr 2022 16:49:36 +0100 (BST) Received: from localhost ([::1]:49346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncqrg-0005B6-4e for patchwork@mira.cbaines.net; Fri, 08 Apr 2022 11:49:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncqMB-0004nf-HP for guix-patches@gnu.org; Fri, 08 Apr 2022 11:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncqMB-0004Sx-8E for guix-patches@gnu.org; Fri, 08 Apr 2022 11:17:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncqMB-0006yG-43 for guix-patches@gnu.org; Fri, 08 Apr 2022 11:17:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54792] [PATCH] gnu: Add python-verspec. Resent-From: Vincent Prat Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Apr 2022 15:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54792 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54792@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164943100026740 (code B ref -1); Fri, 08 Apr 2022 15:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Apr 2022 15:16:40 +0000 Received: from localhost ([127.0.0.1]:35603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncqLo-0006x9-AM for submit@debbugs.gnu.org; Fri, 08 Apr 2022 11:16:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:45764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncpfk-0005q3-7g for submit@debbugs.gnu.org; Fri, 08 Apr 2022 10:33:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncpfk-0007Yf-0N for guix-patches@gnu.org; Fri, 08 Apr 2022 10:33:12 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:36657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncpfi-00051y-0a for guix-patches@gnu.org; Fri, 08 Apr 2022 10:33:11 -0400 Received: by mail-pl1-x630.google.com with SMTP id m16so8026847plx.3 for ; Fri, 08 Apr 2022 07:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deeplinks-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=77dYc1fUj/ueYCLueg2Drv+k0TGQYhS56YgYoNNIa5k=; b=cFsB2TCwcTz/bUIeZ+oeOMQqEVEEXYs4QkvfHAOPETGrZrNl/ijKRZ3x9JiQPwMX+6 Oek7U/f7L48jRWmXD4e0A3suo+M3QYYOBbatiaan3zp6P1+lStONJ5BZ27Doh16k5CAN Ty6gghOyDkKkc//0BG1A+QMKbl8UHhY47Fp2uHoOYFDzkkC78NGadttSMNhut9kCDbXj qgmq/xZKanJnHnbwp40fzQJucKLQlF9LmcTOgUv1t0fahO4vnsMJus2Qy55xpx8cQsiJ hj5fk732ajm8rUtztjyUTr/PXbHUhHx6qUurqXEG1kwVuM+iRDFfSoR14KEQlUfrlZ0f oZOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=77dYc1fUj/ueYCLueg2Drv+k0TGQYhS56YgYoNNIa5k=; b=s4ubtU3Uz86wUwn3hovRQ5wEYr79mQiJJvvjvfAeMyw70xm8UGawrHgNWjc1sM5Hmt GRPO7UmeunZ4a5oaItb/bFYkllQp0rVIx+2NhQWoAJFwAFQK2MrXzYzOCgcaI0RKnlVy PPScmr2oP1G3jLtP9rFQ1BskG9QQqqDhQ5RhOQKSE2+xrDHqiUXXiyKmqyFSqFJPoPik vW6WLcG23ZXL8mzt5Sr0XqyeZy1qFMr7zpBBA1/dMYBZnBoUhgOfv53Qg8HxRKRMhzf4 A8eIJQbqXOzG0LWNZvmKNtfr3+oIHR59+Iu7XeMTwL5dBLhsAO9UPNO0P+UR3WYWC6Lz /3vw== X-Gm-Message-State: AOAM530n94HlkDVpuIVTDW/O72DyWgkeFVxM5zUfUvI7Rm9SDQ6z8EDA uLzmcrCT7HyH+cVjZgAa2HR26nYZTU2IUNwWwr6aYTPeZp+hqQ== X-Google-Smtp-Source: ABdhPJw6M4IIzYJ/gtDmopEZ2laXgAgEcyJN0WETJdx8q+VgEyhbp8nXMxU/9MXApCkota4ySNfCtjQ+JpvdXcGCiEI= X-Received: by 2002:a17:903:32c7:b0:156:b536:2fc2 with SMTP id i7-20020a17090332c700b00156b5362fc2mr18953615plr.173.1649428388444; Fri, 08 Apr 2022 07:33:08 -0700 (PDT) MIME-Version: 1.0 From: Vincent Prat Date: Fri, 8 Apr 2022 16:32:57 +0200 Message-ID: Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=vprat@deeplinks.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Fri, 08 Apr 2022 11:16:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 08 Apr 2022 11:49:19 -0400 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" X-getmail-retrieved-from-mailbox: Patches From 6358a97915e91a49eb9fff85729a60e58ff920d2 Mon Sep 17 00:00:00 2001 From: Vincent Prat Date: Fri, 8 Apr 2022 16:29:38 +0200 Subject: [PATCH] gnu: Add python-verspec. * gnu/packages/python.xyz.scm (python-verspec): New variable. --- gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 55705ab2ea..bd503b2480 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29364,3 +29364,31 @@ writing STL files. It supports both the text and binary forms of STL.") database from the asyncio (PEP-3156/tulip) framework. It wraps asynchronous features of the Psycopg database driver.") (license license:bsd-3))) + +(define-public python-verspec + (package + (name "python-verspec") + (version "0.1.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "verspec" version)) + (sha256 + (base32 + "07n06wv85fm4vl1ird2mja0823js3x322wgs9gdnq1djjyk4ql64")))) + (build-system python-build-system) + (native-inputs (list python-coverage python-flake8 python-mypy + python-pretend python-pytest)) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "touch" "test/__init__.py") + (invoke "pytest"))))))) + (home-page "https://github.com/jimporter/verspec") + (synopsis "Flexible version handling for Python") + (description + "Python library for handling software versions and specifiers, adapted +from the packaging package.") + (license (list license:bsd-2 license:asl2.0)))) -- 2.30.2