From patchwork Sat May 21 20:31:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 39558 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 AB9B727BBEA; Sat, 21 May 2022 21:32:34 +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=-1.2 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_SORBS_WEB,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no 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 BF4D827BBE9 for ; Sat, 21 May 2022 21:32:31 +0100 (BST) Received: from localhost ([::1]:39498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsVm2-0004Pj-QY for patchwork@mira.cbaines.net; Sat, 21 May 2022 16:32:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsVla-0004P5-JA for guix-patches@gnu.org; Sat, 21 May 2022 16:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsVla-0006SA-23 for guix-patches@gnu.org; Sat, 21 May 2022 16:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsVlZ-0004o9-Vc for guix-patches@gnu.org; Sat, 21 May 2022 16:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55563] [PATCH] gnu: Add python-catalogue Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 May 2022 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55563 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55563@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165316511618466 (code B ref -1); Sat, 21 May 2022 20:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 May 2022 20:31:56 +0000 Received: from localhost ([127.0.0.1]:43042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsVlQ-0004ni-3f for submit@debbugs.gnu.org; Sat, 21 May 2022 16:31:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:39120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsVlK-0004nV-4I for submit@debbugs.gnu.org; Sat, 21 May 2022 16:31:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsVlJ-00043W-UG for guix-patches@gnu.org; Sat, 21 May 2022 16:31:45 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:47018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsVlH-0006QK-Vw for guix-patches@gnu.org; Sat, 21 May 2022 16:31:45 -0400 Received: by mail-lf1-x12d.google.com with SMTP id w14so19502996lfl.13 for ; Sat, 21 May 2022 13:31:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=Jeq355BCDMBai45vPQVl3NzQL1IKbPSfJ8YWHa49p1w=; b=ItTTCuizbberwtctM3VCr7OLvcFr5oTbT2mV638s2d3YoFQGfrFSJn6ITWPpLHinsf VDYqsVcxtHRj1Im+/L8AoSvkcQEp7zfr+KNgTgPXFciL+MIXTFpauZefe6cQ3YG7HHtk OzyISNfWL5YBh/H8KgUBydW5InX17Ci5m+uqrga9N0cRKLl070DyWzxRocv17nhgYSv1 b2waeUcfToeQNP17Z1ebwtVLBqYIi8tNnkEf/LypVZswX6G+hWExgForVVpnhuuGRnuf jUXyp5CWR3eZu7q6uSrCSymT1D1msuXdFCJi9JFJ94+jEHJkEdeLm/qKxjdJ+dTHAti/ dvuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=Jeq355BCDMBai45vPQVl3NzQL1IKbPSfJ8YWHa49p1w=; b=DvVtGZWt+/2CMzPmsUhsC1E0p7joY0vCcvtVOeJOJbOfghIEHNGtKbb/gdqk/RaeK+ 33vQdP+lByFhq7Zrkg+EY0sKvZFNSfn2vwYe5kGHOE6YHwd10tYLxCZ1rPZrm0dTc997 FzpBeqggx0f9vti6yfqFdeFzRt0VzRxEztgaUbTTey82zSy7CoF3wdkW5bsor0fFWEZ3 cQS3R2tADRRg1YurSR/w9VO23YSeorac+i4Mt8jMy8DiRClfAkwciQj6RufdFUuCOrpE iLGjfkQJvHYA07PDeiE8yApCBQC1OoL1e/Bb51GHl24H/sKtL+JHK2ox3qM15CMUVR0Q oIDQ== X-Gm-Message-State: AOAM532Sg+PIV5Td9PEdEIIxfvBaeUJ0Uj4LfyRJzOm8+EI6vPx2C3mu AGtk7fpv1peQQ022mjVkcbczJXXjv0E= X-Google-Smtp-Source: ABdhPJwRQ1+X0jEWOWuBMa1c7yMshV0Jm2//pgSWzkH+ZVu8DQ7+4yPAfA9qA5XWL8hoUcKu62OUFw== X-Received: by 2002:a05:6512:1516:b0:448:39b8:d603 with SMTP id bq22-20020a056512151600b0044839b8d603mr11035006lfb.599.1653165102107; Sat, 21 May 2022 13:31:42 -0700 (PDT) Received: from elephant ([5.164.192.222]) by smtp.gmail.com with ESMTPSA id z9-20020ac25de9000000b0047255d211b3sm1176752lfq.226.2022.05.21.13.31.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 13:31:41 -0700 (PDT) From: "Artyom V. Poptsov" Date: Sat, 21 May 2022 23:31:37 +0300 Message-ID: <87y1yufx06.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=poptsov.artyom@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, this patch adds a Python module "catalogue"[1] under the name "python-catalogue". - Artyom References: 1. "Super lightweight function registries for your library" https://pypi.org/project/catalogue/ From b45d368c1644497eca3f65daaec219421d48c9eb Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 21 May 2022 23:27:59 +0300 Subject: [PATCH] gnu: Add python-catalogue * gnu/packages/python-xyz.scm (python-catalogue): New variable. --- gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3c4fa16d16..a56b5ef255 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31449,3 +31449,29 @@ written in C.") (synopsis "Cython bindings for MurmurHash2") (description "This package provides Cython bindings for MurmurHash2.") (license license:expat))) + +(define-public python-catalogue + (package + (name "python-catalogue") + (version "2.0.7") + (source (origin + (method url-fetch) + (uri (pypi-uri "catalogue" version)) + (sha256 + (base32 + "0srdxiil2xys8q1gpc1nvzhvis3a33d8a7amk2i1rlpbg6p36pak")))) + (build-system python-build-system) + (native-inputs (list python-pytest)) + (inputs (list python python-zipp python-typing-extensions python-mypy)) + (home-page "https://github.com/explosion/catalogue") + (synopsis "Lightweight function registries for your library") + (description + "\"catalogue\" is a tiny, zero-dependencies library that +makes it easy to add function (or object) registries to your code. Function +registries are helpful when you have objects that need to be both easily +serializable and fully customizable. Instead of passing a function into your +object, you pass in an identifier name, which the object can use to lookup the +function from the registry. This makes the object easy to serialize, because the +name is a simple string. If you instead saved the function, you'd have to use +Pickle for serialization, which has many drawbacks.") + (license license:expat))) -- 2.25.1