1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flake8 5, pydocstyle 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "flake8-docstrings"; 11 version = "1.7.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "PyCQA"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-EafLWySeHB81HRcXiDs56lbUZzGvnT87WVqln0PoLCk="; 21 }; 22 23 propagatedBuildInputs = [ 24 flake8 25 pydocstyle 26 ]; 27 28 # Module has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "flake8_docstrings" 33 ]; 34 35 meta = with lib; { 36 description = "Extension for flake8 which uses pydocstyle to check docstrings"; 37 homepage = "https://github.com/pycqa/flake8-docstrings"; 38 changelog = "https://github.com/PyCQA/flake8-docstrings/blob/${version}/HISTORY.rst"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ smaret ]; 41 }; 42}