diff options
Diffstat (limited to 'pkgs/development/python-modules/docformatter/default.nix')
-rw-r--r-- | pkgs/development/python-modules/docformatter/default.nix | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/docformatter/default.nix b/pkgs/development/python-modules/docformatter/default.nix index 517b777735d78..d6cd2f308ec06 100644 --- a/pkgs/development/python-modules/docformatter/default.nix +++ b/pkgs/development/python-modules/docformatter/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, charset-normalizer -, tomli -, untokenize -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + charset-normalizer, + tomli, + untokenize, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-QUjeG84KwI5Y3MU1wrmjHBXU2tEJ0CuiR3Y/S+dX7Gs="; }; - patches = [ - ./test-path.patch - ]; + patches = [ ./test-path.patch ]; postPatch = '' substituteInPlace pyproject.toml \ @@ -36,9 +35,7 @@ buildPythonPackage rec { --subst-var-by docformatter $out/bin/docformatter ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ charset-normalizer @@ -51,6 +48,12 @@ buildPythonPackage rec { pytestCheckHook ]; + # Disable failing tests until https://github.com/PyCQA/docformatter/issues/274 is fixed upstream + disabledTests = [ + "test_do_format_code.py" + "test_docformatter.py" + ]; + pythonImportsCheck = [ "docformatter" ]; meta = { |