1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/development/python-modules/codespell/default.nix

27 lines
835 B
Nix
Raw Normal View History

2019-08-07 22:04:48 +01:00
{ lib, buildPythonApplication, fetchPypi, pytest, chardet }:
buildPythonApplication rec {
pname = "codespell";
2020-05-24 19:40:30 +01:00
version = "1.17.1";
2019-08-07 22:04:48 +01:00
src = fetchPypi {
inherit pname version;
2020-05-24 19:40:30 +01:00
sha256 = "08ydpw8pim7rhg1x2n711hxf2y6553nx0c0aqhfi3p4wdgcfr8i5";
2019-08-07 22:04:48 +01:00
};
checkInputs = [ pytest chardet ];
checkPhase = ''
# We don't want to be affected by the presence of these
rm -r codespell_lib setup.cfg
# test_command assumes too much about the execution environment
pytest --pyargs codespell_lib.tests -k "not test_command"
'';
meta = {
description = "Fix common misspellings in source code";
homepage = "https://github.com/codespell-project/codespell";
license = with lib.licenses; [ gpl2 cc-by-sa-30 ];
maintainers = with lib.maintainers; [ johnazoidberg ];
platforms = lib.platforms.all;
};
}