diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pydocstyle')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pydocstyle/default.nix | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pydocstyle/default.nix b/nixpkgs/pkgs/development/python-modules/pydocstyle/default.nix index d8207e37b600..8e53cf086501 100644 --- a/nixpkgs/pkgs/development/python-modules/pydocstyle/default.nix +++ b/nixpkgs/pkgs/development/python-modules/pydocstyle/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch2 -, poetry-core -, snowballstemmer -, tomli -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch2, + poetry-core, + snowballstemmer, + tomli, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,28 +33,18 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; postPatch = '' substituteInPlace pyproject.toml \ --replace 'version = "0.0.0-dev"' 'version = "${version}"' ''; - propagatedBuildInputs = [ - snowballstemmer - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = [ snowballstemmer ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - passthru.optional-dependencies.toml = [ - tomli - ]; + passthru.optional-dependencies.toml = [ tomli ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.toml; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.toml; disabledTestPaths = [ "src/tests/test_integration.py" # runs pip install |