Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 61 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, fetchpatch2, poetry-core, snowballstemmer, tomli, pytestCheckHook,}:
buildPythonPackage rec { pname = "pydocstyle"; version = "6.3.0"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "PyCQA"; repo = "pydocstyle"; rev = "refs/tags/${version}"; hash = "sha256-MjRrnWu18f75OjsYIlOLJK437X3eXnlW8WkkX7vdS6k="; };
patches = [ # https://github.com/PyCQA/pydocstyle/pull/656 (fetchpatch2 { name = "python312-compat.patch"; url = "https://github.com/PyCQA/pydocstyle/commit/306c7c8f2d863bdc098a65d2dadbd4703b9b16d5.patch"; hash = "sha256-bqnoLz1owzDpFqlZn8z4Z+RzKCYBsI0PqqeOtjLxnMo="; }) ];
nativeBuildInputs = [ poetry-core ];
postPatch = '' substituteInPlace pyproject.toml \ --replace 'version = "0.0.0-dev"' 'version = "${version}"' '';
propagatedBuildInputs = [ snowballstemmer ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
passthru.optional-dependencies.toml = [ tomli ];
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.toml;
disabledTestPaths = [ "src/tests/test_integration.py" # runs pip install ];
meta = with lib; { description = "Python docstring style checker"; mainProgram = "pydocstyle"; homepage = "https://github.com/PyCQA/pydocstyle"; changelog = "https://github.com/PyCQA/pydocstyle/blob/${version}/docs/release_notes.rst"; license = licenses.mit; maintainers = with maintainers; [ dzabraev ]; };}