From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aIAqGjbraGGjEgEAgWs5BA (envelope-from ) for ; Fri, 15 Oct 2021 04:45:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6Im5FTbraGFGEwAAbx9fmQ (envelope-from ) for ; Fri, 15 Oct 2021 02:45:10 +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 D6EF032CEE for ; Fri, 15 Oct 2021 04:45:09 +0200 (CEST) Received: from localhost ([::1]:32768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbDDY-0005Rx-UC for larch@yhetil.org; Thu, 14 Oct 2021 22:45:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbDDS-0005RA-JP for guix-patches@gnu.org; Thu, 14 Oct 2021 22:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbDDS-0003Ym-Bo for guix-patches@gnu.org; Thu, 14 Oct 2021 22:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbDDS-0007Kk-3g for guix-patches@gnu.org; Thu, 14 Oct 2021 22:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51222] [PATCH 18/25] gnu: Add python-janus. 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:02 +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.163426585628058 (code B ref 51222); Fri, 15 Oct 2021 02:45:02 +0000 Received: (at 51222) by debbugs.gnu.org; 15 Oct 2021 02:44:16 +0000 Received: from localhost ([127.0.0.1]:37585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbDCh-0007IU-O6 for submit@debbugs.gnu.org; Thu, 14 Oct 2021 22:44:15 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:42018 helo=eauchat.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbDCg-0007IH-5n for 51222@debbugs.gnu.org; Thu, 14 Oct 2021 22:44:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1634265693; 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=NBbuVNf6Q8WBUi5oEBRBVuR2TlPbqyVhRdoI18SmjnA=; b=QTSdJZoCkSdc6jaQLvaXWxJC+VePZplCI1VmWdQLdavPorH0rJ+sN40IrnY2aSL6JLYq62 Y2mU1oxQDwQioGIhEfo+cZ/ao2+YTVuDFfmH7wKNgg9wh4z6cwwEe8nN+ZuRvCRgM1qBPc yZLBIH3PRhXFObOSc3ynCYjt5CYruzM= From: =?UTF-8?Q?S=C3=A9bastien?= Lerique Date: Fri, 15 Oct 2021 11:40:29 +0900 Message-Id: <20211015024036.53831-18-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=1634265909; 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=NBbuVNf6Q8WBUi5oEBRBVuR2TlPbqyVhRdoI18SmjnA=; b=ejM+J/EFlufEACq4hbng3JLmmzUU4ZHa926b5bhPmecQVejhreZEjz4QribNkhh0Dmy6eZ KFc+jpHEBxcuk/rErMx6NX2mT3cB/spjUNdnDcsxKsJ+YLdXXaGmU2s6uvvLtn5lOCxVF0 I0T9MJXV5bmtWbfW/uC7vYiyP8lkeYkzfF+5Y1bURf1k/3by9F2dPmzRYPBAGh7pk3XkAB A7pcAN+Yw4ejvmj7JgQlqXzBQpy/E0FueMsbO5jfyoIXrHFt0D5AXN7CwlgR2uDS4PqimZ dJ5u9XJZvkEZTiRcQtPn1FR3EHoNAvktBKCMQLbNQVhu/cXcs3a5vY9scxwUpA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634265909; a=rsa-sha256; cv=none; b=RMEOJJx6/ukE6Ctc4w82feAloZnZukkftXg7nwXSuDBYWw3BSGXTgi/PuJVhhe1zQEA/lp 4bvZ80xXMRdVM55O6Ma86XAytpH5EPgriEx6NFLge8sI/g2/52Jms78sj0Mn8nJ294FsrR vEd4iOX+kL9asLhqpIzSxOo/1B9T+GxLo7dYREsAsJqBTkFMIlQmeUJkWrJR1shtMyPYM4 bSurLe1v8ehLUx04VHRDmpHifD+Bn+QvboWsb1PZth2TEH2y6IWGcuCC+F+DysjyYSu8nG anrdeGzTHJ9GXNdROiGl0P18SXMOeKUzcwZoHZ4xqnPHkOfidX3aQUnehfOhcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=QTSdJZoC; 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=QTSdJZoC; 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: D6EF032CEE X-Spam-Score: 3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: JTyZa4Iuzalh * gnu/packages/python-xyz.scm (python-janus): New variable. --- gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 02e605b16d..5f80a39fc0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -269,6 +269,45 @@ The purpose of this package is to provide an easy way to test asynchronous HTTP requests.") (license license:expat))) +(define-public python-janus + (package + (name "python-janus") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "janus" version)) + (sha256 + (base32 "030xvl2vghi5ispfalhvch1rl6i2jsy5bf1dgjafa7vifppy04j7")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "--cov=janus" "--cov=tests"))))))) + (native-inputs + `(("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-asyncio" ,python-pytest-asyncio))) + (home-page "https://github.com/aio-libs/janus/") + (synopsis + "Sync-async queue to interoperate between asyncio tasks and classic threads") + (description + "Mixed sync-async queue, supposed to be used for communicating between +classic synchronous (threaded) code and asynchronous (in terms of +@url{https://docs.python.org/3/library/asyncio.html,asyncio}) one. Like +@url{https://en.wikipedia.org/wiki/Janus,Janus god} the queue object from the +library has two faces: synchronous and asynchronous interface. Synchronous is +fully compatible with +@url{https://docs.python.org/3/library/queue.html,standard queue}, +asynchronous one follows +@url{https://docs.python.org/3/library/asyncio-queue.html,asyncio queue +design}.") + (license license:asl2.0))) + (define-public python-ueberzug (package (name "python-ueberzug") -- 2.33.0