From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:38652) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTWjf-0005ZP-3D for guix-patches@gnu.org; Tue, 28 Apr 2020 16:21:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTWj0-0005j1-IH for guix-patches@gnu.org; Tue, 28 Apr 2020 16:21:42 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTWj0-0005iv-4n for guix-patches@gnu.org; Tue, 28 Apr 2020 16:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTWj0-00038t-12 for guix-patches@gnu.org; Tue, 28 Apr 2020 16:21:02 -0400 Subject: [bug#40511] [REDO 1] [PATCH 6/10] gnu: Add python-requests-unixsocket. Resent-Message-ID: References: <87d08h51lw.fsf@dustycloud.org> <87d07rtmvt.fsf@dustycloud.org> <875zdjtmqc.fsf@dustycloud.org> From: Christopher Lemmer Webber In-reply-to: <875zdjtmqc.fsf@dustycloud.org> Date: Tue, 28 Apr 2020 16:20:12 -0400 Message-ID: <87r1w7s6pv.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0006-gnu-Add-python-requests-unixsocket.patch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40511@debbugs.gnu.org >From 9ca089c5abb29c054bb51f67c3d68090b839e262 Mon Sep 17 00:00:00 2001 From: Christopher Lemmer Webber Date: Tue, 28 Apr 2020 15:22:01 -0400 Subject: [PATCH 06/10] gnu: Add python-requests-unixsocket. * gnu/packages/python-xyz.scm (python-requests-unixsocket): New variable. --- gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index bfbe7ef1e7..70ff012fb6 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -19742,3 +19742,39 @@ methods.") "This package provides a local continuous test runner for pytest and watchdog.") (license license:expat))) + +(define-public python-requests-unixsocket + (package + (name "python-requests-unixsocket") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "requests-unixsocket" version)) + (sha256 + (base32 + "1sn12y4fw1qki5gxy9wg45gmdrxhrndwfndfjxhpiky3mwh1lp4y")))) + ;; why tied to waitress==0.9.0 I have no idea + (arguments + ;; We don't have all the test deps yet... missing pyttest-cache + `(#:tests? #f + #:phases + (modify-phases %standard-phases + ;; Not importing the googleapis package for now + (add-after 'unpack 'ignore-googleapis + (lambda _ + (delete-file "test-requirements.txt") + #t))))) + (build-system python-build-system) + (propagated-inputs + `(("python-requests" ,python-requests) + ("python-urllib3" ,python-urllib3))) + (native-inputs + `(("python-pbr-minimal" ,python-pbr-minimal))) + (home-page + "https://github.com/msabramo/requests-unixsocket") + (synopsis + "Use requests to talk HTTP via a UNIX domain socket") + (description + "Use the Python requests library to talk HTTP via a UNIX domain socket.") + (license license:asl2.0))) -- 2.26.0