1{ 2 lib, 3 fetchpatch, 4 buildPythonPackage, 5 pythonOlder, 6 fetchPypi, 7 flake8, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-flake8"; 13 version = "1.1.1"; 14 15 disabled = pythonOlder "3.7"; 16 17 format = "setuptools"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "ba4f243de3cb4c2486ed9e70752c80dd4b636f7ccb27d4eba763c35ed0cd316e"; 22 }; 23 24 patches = [ 25 # https://github.com/tholo/pytest-flake8/issues/87 26 # https://github.com/tholo/pytest-flake8/pull/88 27 (fetchpatch { 28 url = "https://github.com/tholo/pytest-flake8/commit/976e6180201f7808a3007c8c5903a1637b18c0c8.patch"; 29 hash = "sha256-Hbcpz4fTXtXRnIWuKuDhOVpGx9H1sdQRKqxadk2s+uE="; 30 }) 31 ]; 32 33 propagatedBuildInputs = [ flake8 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 meta = { 38 description = "py.test plugin for efficiently checking PEP8 compliance"; 39 homepage = "https://github.com/tholo/pytest-flake8"; 40 maintainers = with lib.maintainers; [ jluttine ]; 41 license = lib.licenses.bsd2; 42 broken = lib.versionAtLeast flake8.version "6.0.0"; 43 }; 44}