From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KE+kG7+BVF9vGAAA0tVLHw (envelope-from ) for ; Sun, 06 Sep 2020 06:29:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YGuaF7+BVF+aYwAA1q6Kng (envelope-from ) for ; Sun, 06 Sep 2020 06:29:19 +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 26ED894028F for ; Sun, 6 Sep 2020 06:29:19 +0000 (UTC) Received: from localhost ([::1]:53014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEnV7-0002pq-OX for larch@yhetil.org; Sun, 06 Sep 2020 01:46:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEnV4-0002pe-7Q for guix-patches@gnu.org; Sun, 06 Sep 2020 01:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEnV3-0006jN-UP for guix-patches@gnu.org; Sun, 06 Sep 2020 01:46:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEnV3-0004YP-Qj for guix-patches@gnu.org; Sun, 06 Sep 2020 01:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43233] [PATCH 01/10] gnu: Add python-httptools. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Sep 2020 05:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43233 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43233@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159937115917495 (code B ref -1); Sun, 06 Sep 2020 05:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Sep 2020 05:45:59 +0000 Received: from localhost ([127.0.0.1]:44530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEnV1-0004Y7-As for submit@debbugs.gnu.org; Sun, 06 Sep 2020 01:45:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:47676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEnV0-0004Y0-1b for submit@debbugs.gnu.org; Sun, 06 Sep 2020 01:45:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEnUz-0002pY-Qa for guix-patches@gnu.org; Sun, 06 Sep 2020 01:45:57 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEnUx-0006j7-BL for guix-patches@gnu.org; Sun, 06 Sep 2020 01:45:57 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 83B9A16005C for ; Sun, 6 Sep 2020 07:45:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1599371152; bh=DDduYFHhGpN90dcJtR1jR7B0rQYHGXlW+aC6Acj2pac=; h=From:To:Cc:Subject:Date:From; b=iZ5I/7yj8TaCFjSxySRqMThAPN21N5bP/mgsie3oa8hc79E28kL3P741wXCHGN3HU 4mkO9mszTJt22gl2JvGei5qc+wxZydKjGF1P/64hyKQR+dXQZwZkko0fWrxp5v9kTl j16aC5seLQNe3zvtRFFuQtabqWrYUAqV4vEv44mCemY8sDYebSwCZ3kXBUTIQtwslB 4pYCQKk3QFPmLwhtgb+7fyW6YsNcHVwxEOlrhnwsZqU8CGshmqtwHyLKvfPyAWkgfk rnl+A9nGMnAGXJIfR/3TYtsFpD/lESvdQBbd8uuJ1lAm2VSofQesxbQ8LjI2Keewjw /rwttJ0hUxF4A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BkgPV6VnDz9rxP; Sun, 6 Sep 2020 07:45:50 +0200 (CEST) From: Vinicius Monego Date: Sun, 6 Sep 2020 02:45:03 -0300 Message-Id: <20200906054503.65491-1-monego@posteo.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/06 01:45:52 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=iZ5I/7yj; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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-Spam-Score: 5.09 X-TUID: LiaCdoVY1fKK * gnu/packages/python-web.scm (python-httptools): New variable. --- gnu/packages/python-web.scm | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 42b2bbc1a1..5dc7430bde 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3957,6 +3957,55 @@ and fairly speedy.") (properties '((hidden? . #t))) (native-inputs `()))) +(define-public python-httptools + (package + (name "python-httptools") + (version "0.1.1") + (source + (origin + ;; PyPI tarball comes with a vendored http-parser and no tests. + (method git-fetch) + (uri (git-reference + (url "https://github.com/MagicStack/httptools") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0g08128x2ixsiwrzskxc6c8ymgzs39wbzr5mhy0mjk30q9pqqv77")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'preparations + (lambda _ + ;; Skip a failing test (AssertionError). Bug report: + ;; https://github.com/MagicStack/httptools/issues/10. + (substitute* "tests/test_parser.py" + ((" def test_parser_response_1") + (string-append + " @unittest.skip(\"Disabled.\")\n" + " def test_parser_response_1"))) + ;; Use packaged http-parser. + (substitute* "setup.py" (("self.use_system_http_parser = False") + "self.use_system_http_parser = True")) + ;; This path is hardcoded. Hardcode our own. + (substitute* "httptools/parser/cparser.pxd" + (("../../vendor/http-parser") + (string-append (assoc-ref %build-inputs "http-parser") + "/include"))) + ;; Don't force Cython version. + (substitute* "setup.py" (("Cython==") "Cython>=")) + #t))))) + (native-inputs + `(("python-cython" ,python-cython) + ("python-pytest" ,python-pytest))) + (inputs + `(("http-parser" ,http-parser))) + (home-page "https://github.com/MagicStack/httptools") + (synopsis "Collection of framework independent HTTP protocol utils") + (description + "@code{httptools} is a Python binding for the nodejs HTTP parser.") + (license license:expat))) + (define-public python-translation-finder (package (name "python-translation-finder") -- 2.20.1