From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wJtBKz3raGGvFAEAgWs5BA (envelope-from ) for ; Fri, 15 Oct 2021 04:45:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KDb4Jj3raGE/EgAA1q6Kng (envelope-from ) for ; Fri, 15 Oct 2021 02:45:17 +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 582AAD026 for ; Fri, 15 Oct 2021 04:45:17 +0200 (CEST) Received: from localhost ([::1]:32862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbDDg-0005WU-HN for larch@yhetil.org; Thu, 14 Oct 2021 22:45:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbDDT-0005RZ-LP for guix-patches@gnu.org; Thu, 14 Oct 2021 22:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbDDT-0003ba-EZ for guix-patches@gnu.org; Thu, 14 Oct 2021 22:45:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbDDT-0007L7-Cv for guix-patches@gnu.org; Thu, 14 Oct 2021 22:45:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51222] [PATCH 21/25] gnu: Add python-matrix-nio. Resent-From: =?UTF-8?Q?S=C3=A9bastien?= Lerique Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 15 Oct 2021 02:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51222 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51222@debbugs.gnu.org Cc: =?UTF-8?Q?S=C3=A9bastien?= Lerique Received: via spool by 51222-submit@debbugs.gnu.org id=B51222.163426588828132 (code B ref 51222); Fri, 15 Oct 2021 02:45:03 +0000 Received: (at 51222) by debbugs.gnu.org; 15 Oct 2021 02:44:48 +0000 Received: from localhost ([127.0.0.1]:37594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbDDE-0007Jf-He for submit@debbugs.gnu.org; Thu, 14 Oct 2021 22:44:48 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:42040 helo=eauchat.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbDDD-0007JT-8n for 51222@debbugs.gnu.org; Thu, 14 Oct 2021 22:44:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1634265699; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tn+NaVuda0XVp3Tp7x6lLCNTQbmm7ZMAb4Maa4vaKlQ=; b=i/nKBc6OPfAjopeXwf4HdFiLhh+Dzs0oAw2ml4bwZVFD8XMIVksUDBOIG6oZmBRbmAQY7G lOYMPyG3PWEEh4iMHEjaGP9mDa0F01kZbDsiOPVDwUydxf3JB174h5miHNJSMlxNIZZwph 3pQcrCJG8xRfJqTx+oJe/f+jWgCAjaw= From: =?UTF-8?Q?S=C3=A9bastien?= Lerique Date: Fri, 15 Oct 2021 11:40:32 +0900 Message-Id: <20211015024036.53831-21-sl@eauchat.org> In-Reply-To: <20211015024036.53831-1-sl@eauchat.org> References: <20211015024036.53831-1-sl@eauchat.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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634265917; h=from:from:sender:sender: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=tn+NaVuda0XVp3Tp7x6lLCNTQbmm7ZMAb4Maa4vaKlQ=; b=j313tTkCpJplXr149CWpNX83EyysEAgl1iv5Lf7Y7rTYjZpgvN03rNrP8NmIAsdvcyIrnj 82+eouLY5VYh2g4+6zFO1v3lA7FZIbaJpnZhN9JM8kG68yKixYKL8x+kV3fVRw/mobQlUA kpDa9QhBbIr1qZRDzldDDSVXrC3otjdrJeKEMTshNdU4y+gK+2IVWxH1RHVzKYrAUQBAQD gXqZyvG4YRGOrZfiNHolAufMLHDNKC4lx8OuRMCMjPAV6YKfWpJZ9D/XlMhtMofp1dgRJo GNl892WAWrfOFLnCKzmPIgtEaevOBU3E44U2qm/xbnhAj7ePUtqZRhS5IZQLAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634265917; a=rsa-sha256; cv=none; b=iJQvN3C/wehXhu02RoKXyBjJ2K578T9NYOOt59guP10ApmQAzz2TTWY+bdoDuzHQlR3XfM OO1kZwilcak/rNZlYIa/BcGUdv5eP0LhdHjbTZIIZaMk0WfBAPkVWXa3mxPmbneZNXiNkZ P7yNQfc6qLEOc6kV4qSbwK7DXu5oe/8sdHjavjCblSvu7dhq8R9fOTZWamGECZwqCrtBWy iCxCGfupYe4QdzFZqsyGZlUXut+VErydeEuZxsyJP3tyFLjiFLoncER1JZr2qelmP+bZVr Iqh+iMdhH2CzIPQnKLKP6J2ruJNt7aGpO98FIEsP5WcB/MBRFY2/XznDdsiAIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b="i/nKBc6O"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); 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: 3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b="i/nKBc6O"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); 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: 582AAD026 X-Spam-Score: 3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3xwcnYlgNIaa * gnu/packages/python-xyz.scm (python-matrix-nio): New variable. --- gnu/packages/python-xyz.scm | 76 +++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f090eb2b5a..453d54a085 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -294,6 +294,82 @@ The purpose of this package is to provide an easy way to test asynchronous HTTP requests.") (license license:expat))) +(define-public python-matrix-nio + (package + (name "python-matrix-nio") + (version "0.18.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "matrix-nio" version)) + (sha256 + (base32 "0cw4y6dx8n8hynxqlzzkj8p34nfbc2xryvmkr5yhmja31y4rks4k")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'install-tests + (lambda* (#:key inputs outputs #:allow-other-keys) + (copy-recursively (string-append + (assoc-ref inputs "tests") "/tests") + "tests") + #t)) + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + ;; FIXME: two tests fail, for unknown reasons + (invoke "python" "-m" "pytest" "-vv" "tests" "-k" + (string-append + "not test_upload_binary_file_object " + "and not test_connect_wrapper")))))))) + (native-inputs + `(("python-pytest" ,python-pytest-6) + ("python-hyperframe" ,python-hyperframe) + ("python-hypothesis" ,python-hypothesis-6.23) + ("python-hpack" ,python-hpack) + ("python-faker" ,python-faker) + ("python-pytest-aiohttp" ,python-pytest-aiohttp) + ("python-aioresponses" ,python-aioresponses) + ("python-pytest-benchmark" ,python-pytest-benchmark) + ("python-toml" ,python-toml) + ("tests" + ;; The release on pypi comes without tests. We can't build from this + ;; checkout, though, because installation requires an invocation of + ;; poetry. + ,(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/poljar/matrix-nio.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "152prkndk53pfxm4in4xak4hwzyaxlbp6wv2zbk2xpzgyy9bvn3s")))))) + (propagated-inputs + `(("python-aiofiles" ,python-aiofiles) + ("python-aiohttp" ,python-aiohttp) + ("python-aiohttp-socks" ,python-aiohttp-socks) + ("python-atomicwrites" ,python-atomicwrites-1.4) + ("python-cachetools" ,python-cachetools) + ("python-future" ,python-future) + ("python-h11" ,python-h11) + ("python-h2" ,python-h2) + ("python-jsonschema" ,python-jsonschema) + ("python-logbook" ,python-logbook) + ("python-olm" ,python-olm) + ("python-peewee" ,python-peewee) + ("python-pycryptodome" ,python-pycryptodome) + ("python-unpaddedbase64" ,python-unpaddedbase64))) + (home-page "https://github.com/poljar/matrix-nio") + (synopsis + "Python Matrix client library, designed according to sans I/O principles") + (description + "Matrix 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))) + (define-public python-janus (package (name "python-janus") -- 2.33.0