13 buildPythonPackage rec {
14 pname = "docformatter";
17 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
24 rev = "refs/tags/v${version}";
25 hash = "sha256-QUjeG84KwI5Y3MU1wrmjHBXU2tEJ0CuiR3Y/S+dX7Gs=";
33 substituteInPlace pyproject.toml \
34 --replace 'charset_normalizer = "^2.0.0"' 'charset_normalizer = ">=2.0.0"'
35 substituteInPlace tests/conftest.py \
36 --subst-var-by docformatter $out/bin/docformatter
43 propagatedBuildInputs = [
54 pythonImportsCheck = [ "docformatter" ];
57 changelog = "https://github.com/PyCQA/docformatter/blob/${src.rev}/CHANGELOG.md";
58 description = "Formats docstrings to follow PEP 257";
59 mainProgram = "docformatter";
60 homepage = "https://github.com/myint/docformatter";
61 license = lib.licenses.mit;
62 maintainers = with lib.maintainers; [ dotlambda ];