From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6MdVHVgVf2EmNAAAgWs5BA (envelope-from ) for ; Sun, 31 Oct 2021 23:14:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CCAZGVgVf2GoVgAA1q6Kng (envelope-from ) for ; Sun, 31 Oct 2021 22:14:48 +0000 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 E772631419 for ; Sun, 31 Oct 2021 23:14:47 +0100 (CET) Received: from localhost ([::1]:50208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhIiM-0002TS-CZ for larch@yhetil.org; Sun, 31 Oct 2021 17:50:06 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635718488; h=from:from:sender:sender: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=yPoV/PCuLdvhmLQjoqkkqwXFCHpAaTIEqlzwdexd6DM=; b=aps1XKLNgGiyN0UiKRn/8U5uSJr3QTqRR1oJFTYN8dvcs+4Bz/YXAVmpnQlMoBK/DA547t IjLREXXq0kiY6bed1QPxj7utETS+4mMhMbYoc2p+vZfBfe1MyatVlqyxm0BCntLFvVQRjq TdKvWI8m4VsPHoUKJU0VmwCv8UC9gazNQPHmaqleZi70OErUSOpV2brGZBPMYPcvpeQuxx sz2pt9CZjiQFh7/zhQLUrNcrJn7qjyzoK8wuR11zjDr5BbTexejhndu5Q2gRgg620BdLDL MuWCFlAXItD9cpW85w6sav4ICewlFrLyinwimls9QwkWcn1ScikvklLw6BwOWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635718488; a=rsa-sha256; cv=none; b=nW5aXQ8VyjzmGRij/CmD9O78QE5m1rJdFyDQgPpJN3ANKUFcf8QxD9h/zQLVUURhy6aiLi IDiYp26f9MQTHRKGzSVthq/PIYrR5M4M7Svr9w8cWd+ydInZwXH3991CUdgVle11Y6JHkB 9ZVjfWWODRlem1PgxqIlp/JYwg7uoDFDy31SymsSgw3RufIyMZjKcTNGEobcKL243Cf+oz j9eBeFTe6EtTTZn5b4cntHCcUmHBMPLvTkpyRDb/3npKu+uc5kY6tvMAPttQ8o1yk6aGnI f5ag4FZiEoTW0GeK5DBkTmJiav/Z4zH0AHIKuUdiaG+gt5eTX0Wq5hlPObhBjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=dmW4L4Lo; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 5.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=dmW4L4Lo; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: E772631419 X-Spam-Score: 5.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: vq0wJYPZRQcR * 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") -- 2.30.2