1{ 2 lib, 3 pythonOlder, 4 fetchPypi, 5 buildPythonPackage, 6 hatchling, 7 flake8, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "flake8-deprecated"; 13 version = "2.2.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchPypi { 19 pname = "flake8_deprecated"; 20 inherit version; 21 hash = "sha256-7pbKAB0coFYfqORvI+LSRgsYqGaWNzyrZE4QKuD/KqI="; 22 }; 23 24 build-system = [ hatchling ]; 25 26 dependencies = [ flake8 ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 enabledTestPaths = [ "run_tests.py" ]; 31 32 pythonImportsCheck = [ "flake8_deprecated" ]; 33 34 meta = with lib; { 35 description = "Flake8 plugin that warns about deprecated method calls"; 36 homepage = "https://github.com/gforcada/flake8-deprecated"; 37 license = licenses.gpl2Only; 38 maintainers = with maintainers; [ lopsided98 ]; 39 }; 40}