Files
nixpkgs/pkgs/development/python-modules/diff-cover/default.nix
2026-10-21 16:00:32 +02:00

63 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
chardet,
fetchPypi,
hatchling,
jinja2,
pluggy,
pycodestyle,
pyflakes,
pygments,
pylint,
pytest-datadir,
pytest-mock,
pytestCheckHook,
tomli,
}:
buildPythonPackage rec {
pname = "diff-cover";
version = "10.6.0";
pyproject = true;
src = fetchPypi {
pname = "diff_cover";
inherit version;
hash = "sha256-jRGU37U39wSArJfJxF3UByHPTDJsmQP76ZfbZ6TbYZU=";
};
build-system = [ hatchling ];
dependencies = [
chardet
jinja2
pluggy
pygments
];
optional-dependencies = {
toml = [ tomli ];
};
nativeCheckInputs = [
pycodestyle
pyflakes
pylint
pytest-datadir
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "diff_cover" ];
meta = {
description = "Automatically find diff lines that need test coverage";
homepage = "https://github.com/Bachmann1234/diff-cover";
changelog = "https://github.com/Bachmann1234/diff_cover/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dzabraev ];
mainProgram = "diff-cover";
};
}