From patchwork Sun Feb 11 19:53:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Miguel_=C3=81ngel_Moreno?= X-Patchwork-Id: 60174 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 A943427BBE2; Mon, 12 Feb 2024 05:38:21 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 DDB3A27BBEA for ; Mon, 12 Feb 2024 05:38:19 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZOxd-0006mu-08; Mon, 12 Feb 2024 00:34:33 -0500 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 1rZOxM-0006WR-MH for guix-patches@gnu.org; Mon, 12 Feb 2024 00:34:17 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZOxM-00052c-9f for guix-patches@gnu.org; Mon, 12 Feb 2024 00:34:16 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZOxc-0001Ai-Rc for guix-patches@gnu.org; Mon, 12 Feb 2024 00:34:32 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#62389] [PATCH v3 1/5] 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: Mon, 12 Feb 2024 05:34:32 +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: mail@migalmoreno.com Received: via spool by 62389-submit@debbugs.gnu.org id=B62389.17077159873506 (code B ref 62389); Mon, 12 Feb 2024 05:34:32 +0000 Received: (at 62389) by debbugs.gnu.org; 12 Feb 2024 05:33:07 +0000 Received: from localhost ([127.0.0.1]:55573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZOwD-0000uR-Rm for submit@debbugs.gnu.org; Mon, 12 Feb 2024 00:33:06 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:60747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZFu6-0007Rl-Vo for 62389@debbugs.gnu.org; Sun, 11 Feb 2024 14:54:19 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id 45CC4C0003; Sun, 11 Feb 2024 19:53:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=migalmoreno.com; s=gm1; t=1707681236; 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=ECUpVCRYrjqKC992RLfdJkQyCTwKJPDehy0c1COD8iw=; b=VAw9D74FRdCrp1LxnILDqSxJ0dYSWa7LLClF2WIQvFliGJBHY7ADoSqvHusP2q+BgnczAx wvTRdztae6354jkg9llT3xzTAauBCA64LZ6Ne57GPtPhkEDREiG4GIYNdlP0OBGynDhAzy 947Mjc3Ol74N/+fxWUJgpPT7+6uI9uhY/KyNVmJ7LIe9MOVMRRuwyW5a3dP9hBnivCQUJN OrO1zWq0a7ZZ7INnY5+X0EKZNk+tNdTTOvxPdf8IQR7I12elzevwIOvsq69fELEnuiOgHW bX4hipypE5L0jIVC+AiLR2VKuKQVUCn44RJm2woTuIoiTMRaqEonKPAcc3pr9Q== From: Miguel =?utf-8?b?w4FuZ2Vs?= Moreno Message-Id: <3e9dc1f25960f69a4fc58a484f5c52c1ffe28e06.1707681223.git.mail@migalmoreno.com> Date: Sun, 11 Feb 2024 20:53:55 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-GND-Sasl: mail@migalmoreno.com X-Mailman-Approved-At: Mon, 12 Feb 2024 00:33:02 -0500 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. Change-Id: I16f03bef7c4cc6c11d3eb33b33b517bbf0441c36 --- gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) base-commit: 6f78803b01d416ab421ba860751b764b9e4f33db -- 2.41.0 -- Best regards, Miguel Ángel Moreno diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c68b17b0ab..8aaf2d63d3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8902,6 +8902,47 @@ (define-public python-perfplot the results.") (license license:gpl3+))) +(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")