From patchwork Sun Aug 16 20:07:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 23641 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 DC6EA27BBE6; Sun, 16 Aug 2020 21:08:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7F6D927BBE5 for ; Sun, 16 Aug 2020 21:08:08 +0100 (BST) Received: from localhost ([::1]:44562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7Owq-0002BN-3J for patchwork@mira.cbaines.net; Sun, 16 Aug 2020 16:08:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7Owk-0002BA-Bt for guix-patches@gnu.org; Sun, 16 Aug 2020 16:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47062) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7Owk-0000Y2-32 for guix-patches@gnu.org; Sun, 16 Aug 2020 16:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k7Owj-0004yr-RJ for guix-patches@gnu.org; Sun, 16 Aug 2020 16:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42894] [PATCH 2/4] gnu: Add python-wsproto. References: <20200816200454.1467-1-monego@posteo.net> In-Reply-To: <20200816200454.1467-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Aug 2020 20:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42894 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42894@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 42894-submit@debbugs.gnu.org id=B42894.159760847119109 (code B ref 42894); Sun, 16 Aug 2020 20:08:01 +0000 Received: (at 42894) by debbugs.gnu.org; 16 Aug 2020 20:07:51 +0000 Received: from localhost ([127.0.0.1]:58605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7OwY-0004y9-LV for submit@debbugs.gnu.org; Sun, 16 Aug 2020 16:07:50 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7OwW-0004xr-6j for 42894@debbugs.gnu.org; Sun, 16 Aug 2020 16:07:49 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D3ED416005F for <42894@debbugs.gnu.org>; Sun, 16 Aug 2020 22:07:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1597608461; bh=R86btecDunfj28b3JIitFgavYfExfavPeMC0p8mPnC8=; h=From:To:Cc:Subject:Date:From; b=DFUjI0P9FuRSuDxcijDA1Qky9wqW3uVloTHiOmEfzGuulbf3n9fVyYW3RiUEzMIyr HTqFtiHRIUv0MY0SyBwCW2/vw6ICgfij5waWd13BJI3V7+SEBf2d4lsdu8g/EtBQ08 UYMi0Yylc9zHuAlLdioFO2U1zN87BQz1XZScRqYCzhRikJVAExnZ05N3WGpLLcfF9K UrEVu/wingNlRcI45f/QmNAW9yu8m4fpWtkaKxYrbhUFrFvVAUI1EwMXvHl6Jj+foQ o+BTS46H9gfTPWT6Hj7ljbIt1XoE0FUFyhkv5n7LNtM/MB0toKr9vu3lM2pnuJEMZx twGTPkrLG9BDg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BV7Wc11PYz9rxW; Sun, 16 Aug 2020 22:07:39 +0200 (CEST) From: Vinicius Monego Date: Sun, 16 Aug 2020 17:07:24 -0300 Message-Id: <20200816200726.1998-1-monego@posteo.net> X-Mailer: git-send-email 2.20.1 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-wsproto): New variable. --- gnu/packages/python-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 957c5ceeff..f05658555a 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -996,6 +996,37 @@ teams extension for python-openid.") (define-public python2-openid-teams (package-with-python2 python-openid-teams)) +(define-public python-wsproto + (package + (name "python-wsproto") + (version "0.15.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "wsproto" version)) + (sha256 + (base32 "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv" "test")))))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-h11" ,python-h11))) + (home-page "https://github.com/python-hyper/wsproto/") + (synopsis "WebSockets state-machine based protocol implementation") + (description + "@code{wsproto} is a pure-Python implementation of a WebSocket protocol +stack. It's written from the ground up to be embeddable in whatever program you +choose to use, ensuring that you can communicate via WebSockets, as defined in +RFC6455, regardless of your programming paradigm.") + (license license:expat))) + (define-public python-tornado (package (name "python-tornado")