From patchwork Sun Mar 17 17:08:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 61914 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 ECF8927BBEB; Sun, 17 Mar 2024 17:10:51 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9AA7E27BBEA for ; Sun, 17 Mar 2024 17:10:49 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlu1p-0000bb-O9; Sun, 17 Mar 2024 13:10:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlu1m-0000Ri-L5 for guix-patches@gnu.org; Sun, 17 Mar 2024 13:10:30 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rlu1m-0001NT-C8; Sun, 17 Mar 2024 13:10:30 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlu2J-0005hv-Tg; Sun, 17 Mar 2024 13:11:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60238] [PATCH v3 6/7] gnu: Add python-cheroot. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 17 Mar 2024 17:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60238 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60238@debbugs.gnu.org Cc: Sharlatan Hellseher , dan , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 60238-submit@debbugs.gnu.org id=B60238.171069541621824 (code B ref 60238); Sun, 17 Mar 2024 17:11:03 +0000 Received: (at 60238) by debbugs.gnu.org; 17 Mar 2024 17:10:16 +0000 Received: from localhost ([127.0.0.1]:58855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlu1X-0005ft-D8 for submit@debbugs.gnu.org; Sun, 17 Mar 2024 13:10:15 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:44165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlu1O-0005eE-Mc for 60238@debbugs.gnu.org; Sun, 17 Mar 2024 13:10:07 -0400 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3416a975840so341829f8f.0 for <60238@debbugs.gnu.org>; Sun, 17 Mar 2024 10:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710695303; x=1711300103; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w3oiJDDlFuX8nC6IcyrlJTwImhaBgJV0JwI6gDooXVQ=; b=LF7YHn6oP5IPJAqKzgnRruD05koBK/v+hQph1Y6pUdaqobiiG6BBRSD0dSB0tXwcut LoZJUIky6Pv69U3oFqehxKJ0abfZ2n/3L06lbQCl6OOVboEeky7LZRPbnC42UVe8DMfV 99ZOmGtJkfzPozTM/LXzosq03mann60wMvyWv38o42lmwx/jfR2wdKbgSKhPs/gEfrKD qYy9JNgZ4oV2V71EZ90I6+GE3nDBldIOuR8PSKS8KHgOEKWhWjRHLIZuD88RfsagXMKp igCKv7y6Do9ysyJz+0sGVBIOqH9AVhZkI1K5JYmeXp6IFDExSYYAgZVFLe9ZmgQhDxcK Y6lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710695303; x=1711300103; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w3oiJDDlFuX8nC6IcyrlJTwImhaBgJV0JwI6gDooXVQ=; b=GuWvfUBwLNLW8rW9lNBVXI4ylpBdZYhdm28XjgjMD5czwm3qR+/3MV8WkinIOGl1I0 x0fK/OTVtYNG8uUDC5p0iQVgKn5IC4BDCHSe93qGLBIpAtCFQjispLmxz4INufV5bTIV Pdw0hulTIm4GmqszshqLLqC1bBVixAfYPmh+Crx9m4WnC1uN/SsdCHrggM0GASjOeXkh Bq9SnBWYe4CQf29T2pLsB3NhF8SWK7wgJ5svW+x9aenQavFLkwNCOb6b4PMvdfVywKJA TcXoI6TaVF0fjs8pmcI0oIV5OjFOi1XTcGBnMDwf/fN9HXbuwmeQF5Bs2nkRfQ8mLHDS BOQw== X-Gm-Message-State: AOJu0Yzj23Gzsto3bf+63muyry3eeXGJ0ukESMnN3WH2xLGAT6255aPg jDG2FAsKGHUtia6FaMli12qiE+EVA4DoNT+nYT1MDFrafOWLFM5GbiT/o6Uz5Sc= X-Google-Smtp-Source: AGHT+IE4z53PNR2Crj6o0/MgFDVE+5fDwp5tarEZF/Pcrcw18OHK9yITzPDp9T7nz9aRFrlx2F2SRg== X-Received: by 2002:a5d:4e11:0:b0:33e:741b:4977 with SMTP id p17-20020a5d4e11000000b0033e741b4977mr6845115wrt.60.1710695303314; Sun, 17 Mar 2024 10:08:23 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id p10-20020a5d638a000000b0033e206a0a7asm7817968wru.26.2024.03.17.10.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 10:08:23 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 17 Mar 2024 17:08:13 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: dan * gnu/packages/python-web.scm (python-cheroot): New variable. Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 57 +++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index c2bdfc8da8..f14c0a7bde 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -58,6 +58,7 @@ ;;; Copyright © 2022 msimonin ;;; Copyright © 2022 Michael Rohleder ;;; Copyright © 2022 Baptiste Strazzulla +;;; Copyright © 2023 dan ;;; Copyright © 2023 John Kehayias ;;; Copyright © 2023 Ivan Vilata-i-Balaguer ;;; Copyright © 2024 Troy Figiel @@ -1279,6 +1280,62 @@ (define-public python-httplib2 other HTTP libraries.") (license license:expat))) +(define-public python-cheroot + (package + (name "python-cheroot") + (version "10.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cheroot" version)) + (sha256 + (base32 + "1w0ind0dza9j1py56y23344piqkpyfmcm060qfrnk6gggy3s3i2r")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "--cov=cheroot" + ;; Tests a flaky in parallel invocation. + ;; "--numprocesses=auto" + "--doctest-modules" + "--showlocals" + ;; Disable test requiring networking. + "-k" "not test_tls_client_auth") + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? test-flags #:allow-other-keys) + (when tests? + (with-directory-excursion "/tmp" + (apply invoke "pytest" "-v" + (append test-flags (list #$output)))))))))) + (propagated-inputs + (list python-jaraco-functools + python-more-itertools + python-six)) + (native-inputs + (list python-cryptography + python-jaraco-text + python-portend + python-pyopenssl + python-pypytools + python-pytest + python-pytest-cov + python-pytest-mock + python-pytest-xdist + python-requests + python-requests-toolbelt + python-requests-unixsocket + python-setuptools-scm + python-setuptools-scm-git-archive + python-trustme)) + (home-page "https://cheroot.cherrypy.dev") + (synopsis "Highly-optimized, pure-python HTTP server") + (description + "Cheroot is a high-performance, pure-Python HTTP server.") + (license license:bsd-3))) + (define-public httpie (package (name "httpie")