From patchwork Sun Oct 31 21:49:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 34190 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 C48F227BBE4; Sun, 31 Oct 2021 21:50:10 +0000 (GMT) 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=ham 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 7B15D27BBE3 for ; Sun, 31 Oct 2021 21:50:10 +0000 (GMT) Received: from localhost ([::1]:50208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhIiP-0002TS-I5 for patchwork@mira.cbaines.net; Sun, 31 Oct 2021 17:50:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhIiI-0002T9-Mf for guix-patches@gnu.org; Sun, 31 Oct 2021 17:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49919) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhIiI-0008Mb-EP for guix-patches@gnu.org; Sun, 31 Oct 2021 17:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhIiI-00050q-Cj for guix-patches@gnu.org; Sun, 31 Oct 2021 17:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51533] [PATCH] gnu: Add python-codespell. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 31 Oct 2021 21:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51533 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51533@debbugs.gnu.org Cc: Felix Gruber X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163571699019230 (code B ref -1); Sun, 31 Oct 2021 21:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Oct 2021 21:49:50 +0000 Received: from localhost ([127.0.0.1]:33230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhIi2-000502-6L for submit@debbugs.gnu.org; Sun, 31 Oct 2021 17:49:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:51862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhIhz-0004zp-UU for submit@debbugs.gnu.org; Sun, 31 Oct 2021 17:49:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhIhz-0002SZ-KN for guix-patches@gnu.org; Sun, 31 Oct 2021 17:49:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]:52271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhIhx-0008LB-62 for guix-patches@gnu.org; Sun, 31 Oct 2021 17:49:43 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 97BBE240027 for ; Sun, 31 Oct 2021 22:49:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1635716977; bh=ZfAxAcCV17bkTMXZcIoTeZsRYT96g6jQjczevfswdXQ=; h=From:To:Cc:Subject:Date:From; b=dmW4L4Lo9PjapHp1UAHji4SI5Q0MFFCeJ5eF+3pQqpQfrtF9ojI/4JrGVqbjjloFF QvefTflbZWqOafLgrSsq4l4OtMQihX9iZdbxdxiOXbI4NjyXZn+N8imr7BWAvfQCO/ jfrB1p3ywLxmfhPtQPE85lgj6g/sBFCsiN9v8RAc0NmCF3BFVGNXhnvu5SNvd8elZ0 T3CSqZapkuPLb8UCU8lI4altuRIsbQSJ0mbj0+JWdcSgBOnHGUCr6apuqoGNUa71VD JXr/FW1A/riewpNaimmGBUMB+qvQx12429u+P8DG1HLepvDL5ODCqhGEBEBe42V9sY M4GLSLyTYTPSQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Hj8vh5qxfz6tmD; Sun, 31 Oct 2021 22:49:36 +0100 (CET) From: Felix Gruber Date: Sun, 31 Oct 2021 21:49:27 +0000 Message-Id: <20211031214927.3349-1-felgru@posteo.net> MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.65; envelope-from=felgru@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , 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-codespell): New variable. --- gnu/packages/python-xyz.scm | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f12cca9757..fb49c4291e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -14228,6 +14228,53 @@ checking library.") ,python2-backport-ssl-match-hostname) ,@(package-propagated-inputs whoosh)))))) +(define-public python-codespell + (package + (name "python-codespell") + (version "2.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "codespell" version)) + (sha256 + (base32 "1r9y714cz8m894rxp7pyvicr1lw2iid24vz6fxbl5wzy8ibgxlqr")))) + (build-system python-build-system) + (inputs + `(("python-chardet" ,python-chardet))) + (native-inputs + `(("python-check-manifest" ,python-check-manifest) + ("python-flake8" ,python-flake8) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-dependency" ,python-pytest-dependency))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key outputs tests? #:allow-other-keys) + (when tests? + ;; Make installed executable available for running the tests. + (setenv "PATH" + (string-append (assoc-ref outputs "out") "/bin" + ":" (getenv "PATH"))) + (invoke "pytest" "-vv"))))))) + (home-page "https://github.com/codespell-project/codespell/") + (synopsis "Spellchecker for code") + (description "Codespell fixes common misspellings in text files. +It's designed primarily for checking misspelled words in source code, +but it can be used with other files as well. It does not check for word +membership in a complete dictionary, but instead looks for a set of +common misspellings. Therefore it should catch errors like \"adn\", but +it will not catch \"adnasdfasdf\". This also means it shouldn't +generate false-positives when you use a niche term it doesn't know +about.") + (license + (list + ; for codespell and codespell_lib + license:gpl2 + ; for dictionary*.txt + license:cc-by-sa3.0)))) + (define-public python-pathlib (package (name "python-pathlib")