Files
nixpkgs/pkgs/by-name/co/codespell/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
aspellDicts,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "codespell";
version = "2.4.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "codespell-project";
repo = "codespell";
tag = "v${version}";
sha256 = "sha256-9hr/QZcBESLukujzNKNjWGG3nXx+wkvQvoUYmYgtXv0=";
};
nativeBuildInputs = with python3.pkgs; [
setuptools-scm
];
nativeCheckInputs = with python3.pkgs; [
aspell-python
chardet
pytestCheckHook
pytest-cov-stub
pytest-dependency
];
preCheck = ''
export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell"
'';
disabledTests = [
# tries to run not fully installed script
"test_basic"
];
pythonImportsCheck = [ "codespell_lib" ];
meta = with lib; {
description = "Fix common misspellings in source code";
mainProgram = "codespell";
homepage = "https://github.com/codespell-project/codespell";
license = with licenses; [
gpl2Only
cc-by-sa-30
];
maintainers = with maintainers; [
johnazoidberg
SuperSandro2000
];
};
}