12 buildPythonPackage rec {
17 disabled = pythonOlder "3.6";
19 src = fetchFromGitHub {
22 rev = "refs/tags/${version}";
23 hash = "sha256-MjRrnWu18f75OjsYIlOLJK437X3eXnlW8WkkX7vdS6k=";
27 # https://github.com/PyCQA/pydocstyle/pull/656
29 name = "python312-compat.patch";
30 url = "https://github.com/PyCQA/pydocstyle/commit/306c7c8f2d863bdc098a65d2dadbd4703b9b16d5.patch";
31 hash = "sha256-bqnoLz1owzDpFqlZn8z4Z+RzKCYBsI0PqqeOtjLxnMo=";
40 substituteInPlace pyproject.toml \
41 --replace 'version = "0.0.0-dev"' 'version = "${version}"'
44 propagatedBuildInputs = [
46 ] ++ lib.optionals (pythonOlder "3.11") [
50 passthru.optional-dependencies.toml = [
56 ] ++ passthru.optional-dependencies.toml;
59 "src/tests/test_integration.py" # runs pip install
63 description = "Python docstring style checker";
64 mainProgram = "pydocstyle";
65 homepage = "https://github.com/PyCQA/pydocstyle";
66 changelog = "https://github.com/PyCQA/pydocstyle/blob/${version}/docs/release_notes.rst";
67 license = licenses.mit;
68 maintainers = with maintainers; [ dzabraev ];