From patchwork Wed Jun 7 17:29:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Miguel_=C3=81ngel_Moreno?= X-Patchwork-Id: 50749 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 F35A427BBEA; Wed, 7 Jun 2023 18:30:14 +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=ham 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 4AC7127BBE9 for ; Wed, 7 Jun 2023 18:30:14 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6wyz-0002py-7e; Wed, 07 Jun 2023 13:30:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6wyx-0002pq-2G for guix-patches@gnu.org; Wed, 07 Jun 2023 13:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6wyw-0000uZ-Nq for guix-patches@gnu.org; Wed, 07 Jun 2023 13:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6wyw-0008Ba-Il for guix-patches@gnu.org; Wed, 07 Jun 2023 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62389] [PATCH v2 1/6] gnu: Add python-matrix-common. References: In-Reply-To: Resent-From: Miguel =?utf-8?b?w4FuZ2Vs?= Moreno Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Jun 2023 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62389 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62389@debbugs.gnu.org Cc: me@mianmoreno.com Received: via spool by 62389-submit@debbugs.gnu.org id=B62389.168615897131397 (code B ref 62389); Wed, 07 Jun 2023 17:30:02 +0000 Received: (at 62389) by debbugs.gnu.org; 7 Jun 2023 17:29:31 +0000 Received: from localhost ([127.0.0.1]:54640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6wyR-0008AK-18 for submit@debbugs.gnu.org; Wed, 07 Jun 2023 13:29:31 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:44159) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6wyN-0008A2-19 for 62389@debbugs.gnu.org; Wed, 07 Jun 2023 13:29:29 -0400 X-GND-Sasl: me@mianmoreno.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mianmoreno.com; s=gm1; t=1686158960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eKaEcmOrCF6RBwwgH/psFW+IhAPqixnOI5f6suIx/GU=; b=lUxTeQfPtVFrl5+5XxKjDRlywuhaFmfUv8p5wEZHA4AC18c82qO1O02trkw2nExvBUv75E mtYWLYPl9qhm8c7xX2qDC09eK3Gz4DScPMie/btLbk1Jmy3bjbS4BOG2eB6IIWJIS3fM/X A+6RlM8zbKdrgXQJ9wxkKmC5RiKjAxp9EqHbj26YlCmQVcvNCc0g70/5Uymdp+x2lNmxzf tpUb3W4pFYsAgthL4g36pzorDmza/yZL5FvEzjNtUePwzs7RCf242qiIWsc2IZ8tbMKqdT g15UVxSdsZHrbp4+4YS0FwKKv/GrlIuQl2SakQe3uChjM4lTuMGxxiIDVz0c/A== X-GND-Sasl: me@mianmoreno.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 8FF1F20005; Wed, 7 Jun 2023 17:29:20 +0000 (UTC) From: Miguel =?utf-8?b?w4FuZ2Vs?= Moreno Message-Id: <9ddbe6448696df3082e02a2b7e3dbe5ae57bdd81.1686158920.git.me@mianmoreno.com> Date: Wed, 07 Jun 2023 19:29:19 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-matrix-common): New variable. --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 47cea7be6f..29166b5887 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7793,6 +7793,47 @@ (define-public python-matplotlib-venn three-way Venn diagrams in @code{matplotlib}.") (license license:expat))) +(define-public python-matrix-common + (package + (name"python-matrix-common") + (version "1.2.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "matrix_common" version)) + (sha256 + (base32 + "0lrqzb6s57fxp0kwffdqnkr2pj9aia459cv1b95b55dxlq1cz7d9")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda _ + (setenv "SOURCE_DATE_EPOCH" + (number->string (* 10 366 24 60 60))) + (invoke "python" "-m" "build" "--wheel" "--no-isolation" "."))) + (replace 'install + (lambda _ + (let ((whl (car (find-files "dist" "\\.whl$")))) + (invoke "pip" "--no-cache-dir" "--no-input" + "install" "--no-deps" "--prefix" #$output whl)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "tests"))))))) + (native-inputs + (list + python-pypa-build + python-pytest + python-setuptools-scm + python-wheel)) + (home-page "https://github.com/matrix-org/matrix-python-common") + (synopsis "Common code for Synapse, Sydent and Sygnal") + (description "This package provides common utilities for Synapse, Sydent +and Sygnal.") + (license license:asl2.0))) + (define-public python-pysnptools (package (name "python-pysnptools")