python3Packages.dulwich: rationalize test exclusions, adopt (#474901)

This commit is contained in:
Sandro
2026-01-04 16:17:27 +00:00
committed by GitHub
@@ -13,13 +13,11 @@
merge3,
paramiko,
pytestCheckHook,
pythonOlder,
rich,
rustPlatform,
rustc,
setuptools,
setuptools-rust,
typing-extensions,
urllib3,
}:
@@ -28,8 +26,6 @@ buildPythonPackage rec {
version = "0.24.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jelmer";
repo = "dulwich";
@@ -55,9 +51,6 @@ buildPythonPackage rec {
dependencies = [
urllib3
]
++ lib.optionals (pythonOlder "3.11") [
typing-extensions
];
optional-dependencies = {
@@ -88,17 +81,17 @@ buildPythonPackage rec {
"test_file_win"
# dulwich.errors.NotGitRepository: No git repository was found at .
"WorktreeCliTests"
# 'SwiftPackData' object has no attribute '_file'
"test_iterobjects_subset_all_present"
"test_iterobjects_subset_missing_allowed"
"test_iterobjects_subset_missing_not_allowed"
# Adding a symlink to a directory outside the repo doesn't raise
"test_add_symlink_absolute_to_system"
# Depends on setuid which is not available in sandboxed environments
"SharedRepositoryTests"
# TypeError: pack index v1 only supports SHA-1 names
"test_pack_index_v1_with_sha256"
];
disabledTestPaths = [
# requires swift config file
"tests/contrib/test_swift_smoke.py"
# "Code [in contrib] is not an official part of Dulwich, and may no longer work"
"tests/contrib"
];
__darwinAllowLocalNetworking = true;
@@ -117,6 +110,9 @@ buildPythonPackage rec {
asl20
gpl2Plus
];
maintainers = with lib.maintainers; [ koral ];
maintainers = with lib.maintainers; [
koral
sarahec
];
};
}