Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: docstrfmt 2.0.2 -> 2.2.0 https://github.com/LilSpazJoekp/docstrfmt/releases attrpath: docstrfmt Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/gl5hd7zjsl4c1wpwl2xmiw0syfz2fgad-packages.json.drv building '/nix/store/gl5hd7zjsl4c1wpwl2xmiw0syfz2fgad-packages.json.drv'... Going to be running update for following packages: - docstrfmt-2.0.2 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - docstrfmt-2.0.2: UPDATING ... - docstrfmt-2.0.2: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/do/docstrfmt/package.nix b/pkgs/by-name/do/docstrfmt/package.nix index 2aeb29fae8fb..47f95f38c5de 100644 --- a/pkgs/by-name/do/docstrfmt/package.nix +++ b/pkgs/by-name/do/docstrfmt/package.nix @@ -6,14 +6,14 @@ python3.pkgs.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 = [ No auto update branch exists Received ExitFailure 1 when running Raw command: nix-build --option sandbox true --arg config "{ allowUnfree = true; allowAliases = false; }" --arg overlays "[ ]" -A docstrfmt nix build failed. def test_cache_single_file(runner): file = "tests/test_files/test_file.rst" args = ["-l", 80, file] result = runner.invoke(main, args=args) assert result.exit_code == 0 assert result.output.endswith("were reformatted.\nDone! 🎉\n")  # Corrupt the formatting while preserving mtime and size so that a cache hit # is distinguishable from a re-process: only a cache hit skips the file. stat = os.stat(file) with open(file, encoding="utf-8") as f: content = f.read() assert "\n- " in content with open(file, "w", encoding="utf-8") as f: f.write(content.replace("\n- ", "\n* ", 1)) os.utime(file, (stat.st_atime, stat.st_mtime))  result = runner.invoke(main, args=["-c", *args]) > assert result.exit_code == 0 E assert 1 == 0 E + where 1 = .exit_code /build/source/tests/test_main.py:1029: AssertionError =========================== short test summary info ============================ FAILED tests/test_main.py::test_invalid_line_length[tests/test_files/test_file.rst] - AssertionError: assert 'Usage: main ...range x>=4.\n' == 'Usage: main ...ra... FAILED tests/test_main.py::test_invalid_line_length[tests/test_files/py_file.py] - AssertionError: assert 'Usage: main ...range x>=4.\n' == 'Usage: main ...ra... FAILED tests/test_main.py::test_invalid_pyproject_toml - AssertionError: assert 'Usage: main ...t be a list\n' == 'Usage: main ...t ... FAILED tests/test_main.py::test_cache_single_file - assert 1 == 0 ======================== 4 failed, 151 passed in 21.06s ========================