From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 9z3nMNXmbGTgKgAASxT56A (envelope-from ) for ; Tue, 23 May 2023 18:16:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MIzxLtXmbGRbQAEAG6o9tA (envelope-from ) for ; Tue, 23 May 2023 18:16:21 +0200 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 5DD63241D9 for ; Tue, 23 May 2023 18:16:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1UgM-00018s-1C; Tue, 23 May 2023 12:16:18 -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 1q1Ug6-00011G-SA for guix-patches@gnu.org; Tue, 23 May 2023 12:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1Ug6-0005Di-KH for guix-patches@gnu.org; Tue, 23 May 2023 12:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1Ug5-0000O2-Tc; Tue, 23 May 2023 12:16:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63668] [PATCH] gnu: Add python-vulture. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Tue, 23 May 2023 16:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63668 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63668@debbugs.gnu.org Cc: lars@6xq.net X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: lars@6xq.net Received: via spool by submit@debbugs.gnu.org id=B.16848585051394 (code B ref -1); Tue, 23 May 2023 16:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 May 2023 16:15:05 +0000 Received: from localhost ([127.0.0.1]:40302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1UfB-0000MQ-5r for submit@debbugs.gnu.org; Tue, 23 May 2023 12:15:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:47922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1Uf9-0000MG-PN for submit@debbugs.gnu.org; Tue, 23 May 2023 12:15:04 -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 1q1Uf9-0000In-CB for guix-patches@gnu.org; Tue, 23 May 2023 12:15:03 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1q1Uf6-0004de-Ea for guix-patches@gnu.org; Tue, 23 May 2023 12:15:03 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4QQfXq498nz9sry for ; Tue, 23 May 2023 18:14:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1684858491; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=AoUCJF7tKdj7QfOZkAlfLd1Rz0vjtErt7JOlWcwaS8o=; b=s5l29o8l9eN7VoLRfsc9EgbHNDz5jqc40fRtwsy54/YwyRuoxrklh4i7j6d4YCGW6rXprI NX/M3XPgXkN4uT2u7CcioOf+tfNhNjKY4DnjEUNtZk7LrnhvlIEdcVnrRqrxlmBGBu5KbE QP3j37x0p+8BHqbthuAwk0UhV51EgQhsWmAzUW6ny37uPylxZYznRF7wgqas/ExMfqM8uj 8PjXlEI5+Fu5Ni+4++PwVYy2bQkBHYSEu9T9jokP4jOmejxtDE5ZVoLSUTkQZ3EtAJA71H Dy5/hzhbW1Uw3eyvP0nqi156K3No+4ueFkcyLv0ulNkkXJOKjPAuOvOEY4Oenw== Date: Tue, 23 May 2023 16:14:46 +0000 Message-Id: <20230523161446.9344-1-antero@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-META: z4qu3zqgrac4zbsqk3rw1ez1x6hu1pg4 X-MBO-RS-ID: 7e364cda04032982131 Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=antero@mailbox.org; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684858581; a=rsa-sha256; cv=none; b=CZdLPSom/pflG7361Cgpgm0rgi7n8prdQwFd7n1wltopvSDwANhMn3u+VI2EUeNdj3iiRi E5ZDH/ScRUuwAOX14xzjHqaPNb7WvEVFiprA8rPtSNPCczrCwwIV0fX/IB8hmPQnFJFSi5 xJUpa1/ok+FnQ5y/93RxfLfwIQdlT8fHKmmW15VrBRU8eq6YO/+30XOidlpTAO/oxjFJnb 1CBnHLcjU7mVQjYR7CwoNjq4MBJ8YIoxpa2LP95044RaiYjsM4/WtvzurzPBpWgkzjrrQA 7nMYBdrhT4PQp+tVCqeL/N38HEmrF3dEOajWpaYdJYZmLEZoxN/bal07w4TOsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=s5l29o8l; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684858581; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AoUCJF7tKdj7QfOZkAlfLd1Rz0vjtErt7JOlWcwaS8o=; b=J4oooJafzxwFTIW8iW+DfjtN5v9QuwnpTsCP8jbV2lGRa1oGkkP7njTBnniVyX3itKLv5g SfgEgOuo55VoNCh9fUa0vNWIqK1U56O7RLeLm8kyat3jRxekK0d3q31243TF3XrU8D2MBW e4GAtxSpedxfWQPxKRZvBxVSqxBWzUGlwDy5aNveMIAM5sA9MAH0TjyniKa763JP1mvCb5 spY2C25h3vsfsJZ65jbqeZqmnNMfeW8E/oYRe5dXJvHGW8fA3R1YnagCRA+9oX7gXa/Lh7 /fCtdK1JNqtmcP52U6u+V59EyJBambZdZ7RXNb/Len1rseWZcSxVoaO7Afh3qA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=s5l29o8l; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.07 X-Spam-Score: -2.07 X-Migadu-Queue-Id: 5DD63241D9 X-TUID: wHvzV3/BjJpL * gnu/packages/python-check.scm (python-vulture): New variable. --- gnu/packages/python-check.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 6c5f45d4b5..468a339788 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -2599,3 +2599,36 @@ (define-public python-xvfbwrapper physical display. Only a network layer is necessary. Xvfb is useful for running acceptance tests on headless servers.") (license license:expat))) + +(define-public python-vulture + (package + (name "python-vulture") + (version "2.7") + (source (origin + (method url-fetch) + (uri (pypi-uri "vulture" version)) + (sha256 + (base32 + "0cl0v3dadxvff0pgq1j120m064a3nmnbjjylkmcxp7zd2jh81yv7")))) + (build-system pyproject-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "tests" "-k" + ;; skip test that uses python-pint + ;; pint has many dependencies + "not test_whitelists_with_python"))))))) + (native-inputs (list python-pytest python-pytest-cov)) + (propagated-inputs (list python-toml)) + (home-page "https://github.com/jendrikseipp/vulture") + (synopsis "Find dead Python code") + (description + "Vulture finds unused code in Python programs. This is useful for +cleaning up and finding errors in large code bases. If you run Vulture on +both your library and test suite you can find untested code. Due to Python's +dynamic nature, static code analyzers like Vulture are likely to miss some +dead code. Also, code that is only called implicitly may be reported as +unused.") + (license license:expat))) -- 2.39.2