From patchwork Wed Mar 22 17:30:29 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: 48591 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 451E916FB9; Wed, 22 Mar 2023 17:31:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 8CC3F16FAC for ; Wed, 22 Mar 2023 17:31:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pf2Ii-0007tq-BF; Wed, 22 Mar 2023 13:31:04 -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 1pf2Ig-0007t5-C4 for guix-patches@gnu.org; Wed, 22 Mar 2023 13:31:02 -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 1pf2Ig-0001Oy-1p for guix-patches@gnu.org; Wed, 22 Mar 2023 13:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pf2If-0004GY-TF for guix-patches@gnu.org; Wed, 22 Mar 2023 13:31:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62389] [PATCH 01/12] gnu: Add python-matrix-common. Resent-From: conses Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Mar 2023 17:31:01 +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 Received: via spool by 62389-submit@debbugs.gnu.org id=B62389.167950624116344 (code B ref 62389); Wed, 22 Mar 2023 17:31:01 +0000 Received: (at 62389) by debbugs.gnu.org; 22 Mar 2023 17:30:41 +0000 Received: from localhost ([127.0.0.1]:36549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pf2IL-0004FX-25 for submit@debbugs.gnu.org; Wed, 22 Mar 2023 13:30:41 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:36123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pf2IH-0004FH-Ua for 62389@debbugs.gnu.org; Wed, 22 Mar 2023 13:30:38 -0400 Received: (Authenticated sender: contact@conses.eu) by mail.gandi.net (Postfix) with ESMTPSA id 3583720003 for <62389@debbugs.gnu.org>; Wed, 22 Mar 2023 17:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conses.eu; s=gm1; t=1679506231; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iw6JMxSID/jNlrQxea4Y9Hqeqr2w5vlH6W+KfrhzXnA=; b=GYicCT6LnIwadGEK3CTtXtlG6NaSznstBQpXO9VtCVvFm4E7ng56D5QB15n3xxizfxjp/S 8xWmnSEU7PUVgo9obYOmRSoOEE3oDRim+gbOAD6fdDC3RqXJIYLPnEBImxxncP4bZpyJAm SpXiKC/C5yn2vhP1v99U+YOS9CuxTaF/21B58zDqvuNWGIuIzfO3qF/nIw31SiI4SDqIiJ MhCuowiY/bQC4AZc1T7EZbbsWx+feSS6WwYeVuoLDStkr1jnhYNaSenqCSu4UYFjJrvdYs MQtFxYufscINh6E2HxYO2FxBPUu1YWzq0TpkafTC0G9VuOZo5uI6wZq38lnECw== From: conses In-Reply-To: References: Message-Id: Date: Wed, 22 Mar 2023 18:30:29 +0100 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 abe4862121..e394341805 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7220,6 +7220,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")