Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools-scm, 7 flake8, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-flake8"; 13 version = "1.2.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "coherent-oss"; 20 repo = "pytest-flake8"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-VNefGRB++FZFIGOS8Pyxbfe0zAXqwy+p6uERE70+CT4="; 23 }; 24 25 build-system = [ setuptools-scm ]; 26 27 dependencies = [ flake8 ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 disabledTests = [ 32 # https://github.com/coherent-oss/pytest-flake8/issues/2 33 "test_version" 34 "test_default_flake8_ignores" 35 "test_ignores_all" 36 "test_w293w292" 37 "test_mtime_caching" 38 "test_ok_verbose" 39 "test_keyword_match" 40 "test_run_on_init_file" 41 "test_unicode_error" 42 "test_junit_classname" 43 ]; 44 45 meta = { 46 changelog = "https://github.com/coherent-oss/pytest-flake8/blob/${src.rev}/NEWS.rst"; 47 description = "py.test plugin for efficiently checking PEP8 compliance"; 48 homepage = "https://github.com/coherent-oss/pytest-flake8"; 49 maintainers = with lib.maintainers; [ jluttine ]; 50 license = lib.licenses.bsd2; 51 }; 52}