13 buildPythonPackage rec {
18 disabled = pythonOlder "3.6";
20 src = fetchFromGitHub {
23 rev = "refs/tags/${version}";
24 hash = "sha256-MjRrnWu18f75OjsYIlOLJK437X3eXnlW8WkkX7vdS6k=";
28 # https://github.com/PyCQA/pydocstyle/pull/656
30 name = "python312-compat.patch";
31 url = "https://github.com/PyCQA/pydocstyle/commit/306c7c8f2d863bdc098a65d2dadbd4703b9b16d5.patch";
32 hash = "sha256-bqnoLz1owzDpFqlZn8z4Z+RzKCYBsI0PqqeOtjLxnMo=";
36 nativeBuildInputs = [ poetry-core ];
39 substituteInPlace pyproject.toml \
40 --replace 'version = "0.0.0-dev"' 'version = "${version}"'
43 propagatedBuildInputs = [ snowballstemmer ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
45 optional-dependencies.toml = [ tomli ];
47 nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.toml;
50 "src/tests/test_integration.py" # runs pip install
54 description = "Python docstring style checker";
55 mainProgram = "pydocstyle";
56 homepage = "https://github.com/PyCQA/pydocstyle";
57 changelog = "https://github.com/PyCQA/pydocstyle/blob/${version}/docs/release_notes.rst";
58 license = licenses.mit;
59 maintainers = with maintainers; [ dzabraev ];