From patchwork Thu May 12 19:47:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 39232 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 8703327BBEA; Thu, 12 May 2022 21:05:03 +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 EBB8A27BBE9 for ; Thu, 12 May 2022 21:05:02 +0100 (BST) Received: from localhost ([::1]:58150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npF3W-0004WN-1g for patchwork@mira.cbaines.net; Thu, 12 May 2022 16:05:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npEn4-0003ii-BL for guix-patches@gnu.org; Thu, 12 May 2022 15:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npEn4-0004DY-1n for guix-patches@gnu.org; Thu, 12 May 2022 15:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npEn3-0000zm-TW for guix-patches@gnu.org; Thu, 12 May 2022 15:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55390] [PATCH] gnu: Add python-cymem Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 May 2022 19:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55390 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55390@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16523848403621 (code B ref -1); Thu, 12 May 2022 19:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 May 2022 19:47:20 +0000 Received: from localhost ([127.0.0.1]:42323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npEmK-0000wI-H6 for submit@debbugs.gnu.org; Thu, 12 May 2022 15:47:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:55580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npEmF-0000w5-M4 for submit@debbugs.gnu.org; Thu, 12 May 2022 15:47:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npEmF-0003EC-DA for guix-patches@gnu.org; Thu, 12 May 2022 15:47:11 -0400 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:45881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npEmD-0004BG-Bz for guix-patches@gnu.org; Thu, 12 May 2022 15:47:10 -0400 Received: by mail-lj1-x22f.google.com with SMTP id bx33so7769671ljb.12 for ; Thu, 12 May 2022 12:47:08 -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=9r1IkvwKipJeJfbW/vYUNxr6Wz07ByN+XvcDzKCqSrY=; b=OreOfkSM7nUIEwxjwWEkBN7oyUcsDHoepd/eKyuwuXlW9p+S5FLLwBUIzKNa3wJ/1E Ts2Y6r6mP4F3JJnSYkdciTcetDiSuNg0TH+qNmNMEUJj9oROQ9oXDs3akETACu07JKuj E8RUQ5jkizFbFNdeML0kllzhG1kwJOrzmyDZVUqMy2tDGZ1FBQEkKVcBKe5brx/5u/5h LS/gmF13VVtF1OSslIcrncwiRuqR1euGT2uX7XiiVH3CQjsMpYEr4XQuoCl0XkjOeIRE ITSbzIBlWmBbC29FsU94ZplR8Tl+o8JMbf6xMXPWLItKhAUQWWWVtJ9Ed2ZlQ9dj2l4T K6AQ== 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=9r1IkvwKipJeJfbW/vYUNxr6Wz07ByN+XvcDzKCqSrY=; b=wzs5KCEuRxfZTj98A406AOHGgmbCu/QIVXPzUztqiQENKNT8pkW8FyC4CUskpFKMro eTsYI0ArNqE2pFfFgV7TjcsliGCLQ7kB7a/kXL6aidF1YQZlU7Q/Lq11fiYs7Ghw0+t0 h/m/P8HEf8RFbcfbkPdbydQzLJWIgEnW09RI8QyH2YNHzvWOzHx1alMI67YSzJZs1eV4 CWo9uaVpD4cLJAAkTzYVwFRe7G/XFsVOrVagusH5o7S+HZ4dvOr7OnwSFOIdrr8py/DS r5EDBD0wQc/K/9uP2DjR2ZPkZYdzUrd53FD5ffXyqJsatdFQbfMrjwI+892Cyj+v+7jy 49Fg== X-Gm-Message-State: AOAM530i0KRx+hkzTCJ6dnSLIyT8EoaSWDryrMWVxZdK1cuM8NUF9oWG bBCslNLjKK5cXWzHJMfBMsDtMWSn9WI= X-Google-Smtp-Source: ABdhPJxnfOsWuB6STB3NClI1qEwnnReLNRrSIQ30MwDGxIQ67OtoDS4eDvNdnkeFQO+2cyWJ9ccxYw== X-Received: by 2002:a2e:a806:0:b0:250:84e5:723f with SMTP id l6-20020a2ea806000000b0025084e5723fmr962378ljq.354.1652384827077; Thu, 12 May 2022 12:47:07 -0700 (PDT) Received: from elephant ([5.164.192.222]) by smtp.gmail.com with ESMTPSA id x30-20020a2e585e000000b0024f3d1daee8sm58931ljd.112.2022.05.12.12.47.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 12:47:06 -0700 (PDT) From: "Artyom V. Poptsov" Date: Thu, 12 May 2022 22:47:01 +0300 Message-ID: <87fsle7cui.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::22f; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x22f.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 cymem[1] under the name 'python-cymem'. - Artyom 1: https://github.com/explosion/cymem From 4acef69146d41714e9912fb1576f6f64b267eaa2 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Thu, 12 May 2022 22:43:29 +0300 Subject: [PATCH] gnu: Add python-cymem * gnu/packages/python-xyz.scm (python-cymem): New variable. --- gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index fdfdd3fef3..421a298ccd 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -121,6 +121,7 @@ ;;; Copyright © 2022 Peter Polidoro ;;; Copyright © 2022 Wamm K. D. ;;; Copyright © 2022 Jai Vetrivelan +;;; Copyright © 2022 Artyom V. Poptsov ;;; ;;; This file is part of GNU Guix. ;;; @@ -31150,3 +31151,46 @@ object, which can be useful if you want to force your objects into a table.") "The @code{deep-merge} Python library provides a toolset to deeply merge nested data structures in Python like lists and dictionaries.") (license license:expat))) + +(define-public python-cymem + (package + (name "python-cymem") + (version "2.0.6") + (source (origin + (method url-fetch) + (uri (pypi-uri "cymem" version)) + (sha256 + (base32 + "0pkyy60zk9654sj991w111p1l0m8wvz36nslw96x6nb9h6sjb5qn")))) + (build-system python-build-system) + (native-inputs + (list python-cython + python-pytest)) + (inputs + (list python)) + (arguments + (list + #:modules '((ice-9 ftw) + (ice-9 match) + (guix build utils) + (guix build python-build-system)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-source-file-times-to-1980 + ;; XXX One of the tests uses a ZIP library to pack up some of the + ;; source tree, and fails with "ZIP does not support timestamps + ;; before 1980". Work around this by setting the file times in the + ;; source tree to sometime in early 1980. + (lambda _ + (let ((circa-1980 (* 10 366 24 60 60))) + (ftw "." (lambda (file stat flag) + (utime file circa-1980 circa-1980) + #t)))))))) + (home-page "https://github.com/explosion/cymem") + (synopsis "Cython memory pool for RAII-style memory management") + (description + "Cymem provides two small memory-management helpers for Cython. They make it +easy to tie memory to a Python object's life-cycle, so that the memory is freed +when the object is garbage collected.") + (license license:expat))) + -- 2.25.1