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