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