From patchwork Thu Oct 21 04:01:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 33980 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 34AE927BBE3; Thu, 21 Oct 2021 05:06:11 +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_H2,SPF_HELO_PASS,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 ESMTPS id E0A4127BBE1 for ; Thu, 21 Oct 2021 05:06:10 +0100 (BST) Received: from localhost ([::1]:42294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdPLF-0004mO-Cj for patchwork@mira.cbaines.net; Thu, 21 Oct 2021 00:06:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdPKA-0004jC-Va for guix-patches@gnu.org; Thu, 21 Oct 2021 00:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44471) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdPKA-0001hO-Lm for guix-patches@gnu.org; Thu, 21 Oct 2021 00:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mdPKA-0005iV-HO for guix-patches@gnu.org; Thu, 21 Oct 2021 00:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51314] [PATCH 23/29] gnu: python-zeroconf: Update to 0.33.4. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Oct 2021 04:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51314@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51314-submit@debbugs.gnu.org id=B51314.163478905221836 (code B ref 51314); Thu, 21 Oct 2021 04:05:02 +0000 Received: (at 51314) by debbugs.gnu.org; 21 Oct 2021 04:04:12 +0000 Received: from localhost ([127.0.0.1]:55999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPJM-0005g8-Jc for submit@debbugs.gnu.org; Thu, 21 Oct 2021 00:04:12 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mdPJK-0005eT-5j for 51314@debbugs.gnu.org; Thu, 21 Oct 2021 00:04:11 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 964D0240026 for <51314@debbugs.gnu.org>; Thu, 21 Oct 2021 06:04:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634789044; bh=hP6Pxz4qUNVyHvYRE/EJJksZVbzXma7chxsFdo7ibBE=; h=From:To:Cc:Subject:Date:From; b=MZyibFX7/Sbpb1vqGg4xowg1bR7WQtIIaZaJ/AHT8BbcPMBoQgWxN9U5Rim+kdeeP szxgV3IKHx22YXzbodm9TIK2czez+Kg5Px2bp7Hgd1aebwNEXmbQoCPDURmXfApBAC E2T42Sht1DZT3lRdnEYg0f1jhS1/i6lYioMWfrnTCv/cXisnmT0f000lsARB4csVNS usGCVw51TKS8YU5HMpDa7dv8t3XQZcrs+sJsuLxD8nvJXPYi8PLns/2x1BdHeLi8s+ LuVjVe+aoEJUBe+Au7v0cV1Fj2fu2UBYqJwMeqHoRCXZzd9VG/xJVJRvsUklM4dDHv CVV1p6AWwhyTg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HZYkq55jhz6tm6; Thu, 21 Oct 2021 06:04:03 +0200 (CEST) From: Vinicius Monego Date: Thu, 21 Oct 2021 04:01:54 +0000 Message-Id: <20211021040200.241873-19-monego@posteo.net> In-Reply-To: <20211021040200.241873-1-monego@posteo.net> References: <20211021040200.241873-1-monego@posteo.net> 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-xyz.scm (python-zeroconf): Update to 0.33.4. [source]: Fetch from GitHub. [native-inputs]: Remove python-nose. Add python-pytest. [arguments]<#:phases>: Adjust custom 'check phase to use Pytest. --- gnu/packages/python-xyz.scm | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 115e013490..c81d8b306f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -23399,29 +23399,36 @@ enumeration library in Python.") (define-public python-zeroconf (package (name "python-zeroconf") - (version "0.28.8") + (version "0.33.4") (source (origin - (method url-fetch) - (uri (pypi-uri "zeroconf" version)) + (method git-fetch) ; no tests in PyPI release + (uri (git-reference + (url "https://github.com/jstasiak/python-zeroconf") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0narq8haa3b375vfblbyil77n8bw0wxqnanl91pl0wwwm884mqjb")))) + (base32 "01bv6xrhf5i7gckg3q53i249zxmhkkr65yib6par8z5risihrpwm")))) (build-system python-build-system) (native-inputs - `(("python-nose" ,python-nose))) + `(("python-pytest" ,python-pytest))) (propagated-inputs `(("python-ifaddr" ,python-ifaddr))) (arguments `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ ;; Networking isn't available for these tests. - (invoke "nosetests" "-v" - "--exclude" "test_integration_with_listener_ipv6" - "--exclude" "test_launch_and_close_v6_only" - "--exclude" "test_launch_and_close_v4_v6" - "--exclude" "test_launch_and_close")))))) + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "-k" + (string-append + ;; Networking isn't available for these tests. + "not test_integration_with_listener_ipv6" + " and not test_launch_and_close_v4_v6" + " and not test_launch_and_close_context_manager" + " and not test_launch_and_close" + " and not test_close_multiple_times")))))))) (home-page "https://github.com/jstasiak/python-zeroconf") (synopsis "Pure Python mDNS service discovery") (description