docstrfmt: 2.0.2 -> 2.2.0 (#553574)

This commit is contained in:
Doron Behar
2026-08-17 09:48:44 +00:00
committed by GitHub

View File

@@ -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"
];