aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/codespell/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/codespell/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/codespell/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/codespell/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/codespell/default.nix
index 70c634737635..7efb08c2c67b 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/codespell/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/codespell/default.nix
@@ -1,13 +1,16 @@
{ lib, buildPythonApplication, fetchPypi, pytest, chardet }:
+
buildPythonApplication rec {
pname = "codespell";
- version = "1.17.1";
+ version = "2.0.0";
src = fetchPypi {
inherit pname version;
- sha256 = "08ydpw8pim7rhg1x2n711hxf2y6553nx0c0aqhfi3p4wdgcfr8i5";
+ sha256 = "dd9983e096b9f7ba89dd2d2466d1fc37231d060f19066331b9571341363c77b8";
};
+ # no tests in pypi tarball
+ doCheck = false;
checkInputs = [ pytest chardet ];
checkPhase = ''
# We don't want to be affected by the presence of these
@@ -16,6 +19,8 @@ buildPythonApplication rec {
pytest --pyargs codespell_lib.tests -k "not test_command"
'';
+ pythonImportsCheck = [ "codespell_lib" ];
+
meta = {
description = "Fix common misspellings in source code";
homepage = "https://github.com/codespell-project/codespell";