diff --git a/pkgs/by-name/do/docstrfmt/package.nix b/pkgs/by-name/do/docstrfmt/package.nix index 2aeb29fae8fb..a574fc2e2e29 100644 --- a/pkgs/by-name/do/docstrfmt/package.nix +++ b/pkgs/by-name/do/docstrfmt/package.nix @@ -1,23 +1,23 @@ { lib, - python3, + python3Packages, fetchFromGitHub, }: -python3.pkgs.buildPythonApplication (finalAttrs: { +python3Packages.buildPythonApplication (finalAttrs: { pname = "docstrfmt"; - version = "2.0.2"; + version = "2.2.0"; pyproject = true; src = fetchFromGitHub { owner = "LilSpazJoekp"; repo = "docstrfmt"; tag = "v${finalAttrs.version}"; - hash = "sha256-N2uPFOdDvAUL9eV4kn8MYM6OTMWJm24inlyY+k9Eqm8="; + hash = "sha256-DMeTrFHSJpUPBsE70dZ96WwQuY6C1POAGOJkSRfa2ho="; }; build-system = [ - python3.pkgs.flit-core + python3Packages.flit-core ]; pythonRelaxDeps = [ @@ -25,7 +25,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: { "types-docutils" ]; - dependencies = with python3.pkgs; [ + dependencies = with python3Packages; [ black click coverage @@ -40,11 +40,20 @@ python3.pkgs.buildPythonApplication (finalAttrs: { types-docutils ]; - nativeCheckInputs = with python3.pkgs; [ + nativeCheckInputs = with python3Packages; [ pytestCheckHook pytest-aiohttp ]; + disabledTests = [ + # Failure due to different behavior of click, see: + # https://github.com/LilSpazJoekp/docstrfmt/issues/232 + "test_invalid_line_length[tests/test_files/test_file.rst]" + "test_invalid_line_length[tests/test_files/py_file.py]" + "test_invalid_pyproject_toml" + "test_cache_single_file" + ]; + pythonImportsCheck = [ "docstrfmt" ];