From patchwork Tue Apr 28 19:48:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christine Lemmer-Webber X-Patchwork-Id: 21724 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 D568D27BBE4; Tue, 28 Apr 2020 20:51:46 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 A0EFE27BBE1 for ; Tue, 28 Apr 2020 20:51:46 +0100 (BST) Received: from localhost ([::1]:48016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTWGf-0007Dt-V4 for patchwork@mira.cbaines.net; Tue, 28 Apr 2020 15:51:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34370) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTWFn-0006Nx-M7 for guix-patches@gnu.org; Tue, 28 Apr 2020 15:51:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTWF0-0005gB-9K for guix-patches@gnu.org; Tue, 28 Apr 2020 15:50:51 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58283) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTWEz-0005g6-Sn for guix-patches@gnu.org; Tue, 28 Apr 2020 15:50:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTWEz-0002LA-SH for guix-patches@gnu.org; Tue, 28 Apr 2020 15:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40511] [PATCH 6/10] gnu: Add python-requests-unixsocket. Resent-From: Christopher Lemmer Webber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Apr 2020 19:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40511 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 40511@debbugs.gnu.org Received: via spool by 40511-submit@debbugs.gnu.org id=B40511.15881033438880 (code B ref 40511); Tue, 28 Apr 2020 19:50:01 +0000 Received: (at 40511) by debbugs.gnu.org; 28 Apr 2020 19:49:03 +0000 Received: from localhost ([127.0.0.1]:41590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTWE2-0002JA-PD for submit@debbugs.gnu.org; Tue, 28 Apr 2020 15:49:03 -0400 Received: from dustycloud.org ([50.116.34.160]:44112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTWE0-0002IX-UA for 40511@debbugs.gnu.org; Tue, 28 Apr 2020 15:49:01 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 821A226679 for <40511@debbugs.gnu.org>; Tue, 28 Apr 2020 15:49:00 -0400 (EDT) References: <87d08h51lw.fsf@dustycloud.org> <87d07rtmvt.fsf@dustycloud.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Christopher Lemmer Webber In-reply-to: <87d07rtmvt.fsf@dustycloud.org> Date: Tue, 28 Apr 2020 15:48:59 -0400 Message-ID: <875zdjtmqc.fsf@dustycloud.org> MIME-Version: 1.0 Content-Disposition: inline; filename=0006-gnu-Add-python-requests-unixsocket.patch X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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 From 873652e761e8d59f8f2d80da1f9ad3d469013988 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 d9a972c456..2c354c8d71 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 #f))) -- 2.26.0