depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-flake8/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

52 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools-scm,
flake8,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-flake8";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "coherent-oss";
repo = "pytest-flake8";
rev = "refs/tags/v${version}";
hash = "sha256-VNefGRB++FZFIGOS8Pyxbfe0zAXqwy+p6uERE70+CT4=";
};
build-system = [ setuptools-scm ];
dependencies = [ flake8 ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# https://github.com/coherent-oss/pytest-flake8/issues/2
"test_version"
"test_default_flake8_ignores"
"test_ignores_all"
"test_w293w292"
"test_mtime_caching"
"test_ok_verbose"
"test_keyword_match"
"test_run_on_init_file"
"test_unicode_error"
"test_junit_classname"
];
meta = {
changelog = "https://github.com/coherent-oss/pytest-flake8/blob/${src.rev}/NEWS.rst";
description = "py.test plugin for efficiently checking PEP8 compliance";
homepage = "https://github.com/coherent-oss/pytest-flake8";
maintainers = with lib.maintainers; [ jluttine ];
license = lib.licenses.bsd2;
};
}