From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UGtDGt2VzmD3gwAAgWs5BA (envelope-from ) for ; Sun, 20 Jun 2021 03:11:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2IPyFd2VzmDuKwAAbx9fmQ (envelope-from ) for ; Sun, 20 Jun 2021 01:11:57 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 05113139B8 for ; Sun, 20 Jun 2021 03:11:57 +0200 (CEST) Received: from localhost ([::1]:54810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lum0C-0002yh-2s for larch@yhetil.org; Sat, 19 Jun 2021 21:11:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lulzK-0001sv-TO for guix-patches@gnu.org; Sat, 19 Jun 2021 21:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49543) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lulzK-0001ux-Kg for guix-patches@gnu.org; Sat, 19 Jun 2021 21:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lulzK-0004OG-Gi for guix-patches@gnu.org; Sat, 19 Jun 2021 21:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49123] [PATCH 17/24] gnu: Add python-matrix-nio. Resent-From: slg <0x2d@disroot.org> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Jun 2021 01:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49123 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49123@debbugs.gnu.org Cc: slg <0x2d@disroot.org> Received: via spool by 49123-submit@debbugs.gnu.org id=B49123.162415142016768 (code B ref 49123); Sun, 20 Jun 2021 01:11:02 +0000 Received: (at 49123) by debbugs.gnu.org; 20 Jun 2021 01:10:20 +0000 Received: from localhost ([127.0.0.1]:32842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lulye-0004MH-6V for submit@debbugs.gnu.org; Sat, 19 Jun 2021 21:10:20 -0400 Received: from knopi.disroot.org ([178.21.23.139]:47838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <0x2d@disroot.org>) id 1lulyR-0004K8-Rx for 49123@debbugs.gnu.org; Sat, 19 Jun 2021 21:10:08 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 681815C92F; Sun, 20 Jun 2021 03:10:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VK0Z0tQPhowa; Sun, 20 Jun 2021 03:10:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1624151403; bh=agAt0+xFEQqwBdDPp1ahJz0dx5o19wf+fZZsCWYmArQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FEPOTL9wwJKCIavVMPhpl8cIEbR5tgOuii+pJi4Dwl71bKbKuSbHrBkpxlrIHk0xg sF29skiVi0hWqYHIP0PR4cc4kmmcw6vD4NZQucgU+m6Nzyv0W7odmmfcuhnZ1wTs6y rsmxmlNoCq2dqPc7BAvZcPcg1yLIi0HXK5ELj28rZspJWASQw3b2MCcWHRD6H4rS+o tAPvfBB2jRLExrL0hVuc/og6AqV1uOwhPeSSx5mvitHrLnxHSiswp4iDwo6RGHHB1O XvYZpZUsppdeqhCpcPuDwTSFE7JVhD9z+bJxieUhZAjx0FCHl/9+yVNGU9MZK7lNx6 QrYYDGb8Ymiag== Date: Sat, 19 Jun 2021 22:07:35 -0300 Message-Id: <20210620010742.4259-17-0x2d@disroot.org> In-Reply-To: <20210620010742.4259-1-0x2d@disroot.org> References: <20210620010742.4259-1-0x2d@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: slg <0x2d@disroot.org> X-ACL-Warn: , slg via Guix-patches From: slg via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624151517; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=b8KJueqMqtjSbuc4i5o9T0wggbPXp7dp7cdx5Gst2r0=; b=LpQeGDUMuGPE8cjo5oSVptUnjwbjbsDrDMBkmJKsrCruTr7g9+29Kf0dViM1skStR9eNAg idk2z2Ef/7pYtoIgpBKLJpYrSE0H+3cIV2evnIqdWESABzPzYYm/mU6XaPJmuJRVGlll+R 8Qsi7sYd/VCV8Aa3m1BiZt6zZX5QqrNSxTE5HWtCorFaXGKw7ofVDt1DdOa7DuqU1XQl8C d8h4H2fhOCj0gmGnFSN7NtTrKmiRlvUESveVmSxfHLzjxZPfkptBTGXYdUMDK4mpfpAuEy t3bXeSfUPeAKcWlC6SE4tC1kknkIqjEXjxNfbcqnrehiJSQo2dBO91d7zI5fZg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624151517; a=rsa-sha256; cv=none; b=B/U/lI4qAbneCZfv4g1vshDxnq6FDvNH6Xoz7G39ST5ilVhJdoF/QeBUn0wyz3R4cRWBGf 9kBBxBR58OxRJZ+l9BPb/QwAGAV+2UtNczb0d4nzGmQn4OybleVo686EmrFbC5+4Ih1EBU dHtI97jiWha5rVgROI9KlZF+bi5mjOZfdJ0cSu7t7IMhXUkgBcKaRsSF+MakBv/wO0ieey mQ0q+POgRRpE2MBmeEL8inHRj7d90ZZInilHLuM+rdiG/c1Ql4disL9blhciZTgn9mxhBx 8rbARfK0Zu9ME97o8MrDfy2gM7SPWskL2LVg4jEovt8Tl5cCmBZb3TfktCa1aA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=FEPOTL9w; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=FEPOTL9w; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 05113139B8 X-Spam-Score: 1.58 X-Migadu-Scanner: scn1.migadu.com X-TUID: KSfT8Z1UZj5g * gnu/packages/matrix.scm (python-matrix-nio): New variable. --- gnu/packages/matrix.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm index 5c2b194d07..d7438deebd 100644 --- a/gnu/packages/matrix.scm +++ b/gnu/packages/matrix.scm @@ -22,6 +22,7 @@ (define-module (gnu packages matrix) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages check) + #:use-module (gnu packages crypto) #:use-module (gnu packages databases) #:use-module (gnu packages monitoring) #:use-module (gnu packages python-crypto) @@ -149,3 +150,42 @@ Python/Twisted. It is intended to showcase the concept of Matrix and let folks see the spec in the context of a codebase and let you run your own homeserver and generally help bootstrap the ecosystem.") (license license:asl2.0))) + +(define-public python-matrix-nio + (package + (name "python-matrix-nio") + (version "0.18.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "matrix-nio" version)) + (sha256 + (base32 + "09ld9jakq7h4hsa6lyqn82p5cb5qc2dl0gn418i98kz870p01qm2")))) + (build-system python-build-system) + (propagated-inputs + `(("python-aiofiles" ,python-aiofiles) + ("python-aiohttp-socks" ,python-aiohttp-socks) + ("python-aiohttp" ,python-aiohttp) + ("python-future" ,python-future) + ("python-h11" ,python-h11) + ("python-h2" ,python-h2) + ("python-jsonschema" ,python-jsonschema) + ("python-logbook" ,python-logbook) + ("python-pycryptodome" ,python-pycryptodome) + ("python-unpaddedbase64" ,python-unpaddedbase64) + ;; EE2E requirements + ("libolm" ,libolm) + ("libolm" ,libolm "python") + ("python-cachetools" ,python-cachetools) + ("python-peewee" ,python-peewee) + ("python-atomicwrites" ,python-atomicwrites))) + (arguments + `(#:tests? #f)) ;; PyPI tarball misses tests, but git version uses + ;; different build system + (home-page "https://github.com/poljar/matrix-nio") + (synopsis "Matrix client library for Python") + (description "@code{nio} is a multilayered Matrix client library. The +underlying base layer doesn't do any network IO on its own, but on top of +that is a full fledged batteries-included asyncio layer using aiohttp.") + (license license:isc))) -- 2.32.0