push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,122 @@
{
lib,
buildPythonPackage,
cargo,
fastimport,
fetchFromGitHub,
gevent,
geventhttpclient,
git,
glibcLocales,
gnupg,
gpgme,
merge3,
paramiko,
pytestCheckHook,
pythonOlder,
rich,
rustPlatform,
rustc,
setuptools,
setuptools-rust,
typing-extensions,
urllib3,
}:
buildPythonPackage rec {
pname = "dulwich";
version = "0.24.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "jelmer";
repo = "dulwich";
tag = "dulwich-${version}";
hash = "sha256-GGVvTKDLWPcx1f28Esl9sDXj33157NhSssYD/C+fLy4=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-qGAvy0grueKI+A0nsXntf/EWtozSc138iFDhlfiktK8=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
cargo
rustc
];
build-system = [
setuptools
setuptools-rust
];
dependencies = [
urllib3
]
++ lib.optionals (pythonOlder "3.11") [
typing-extensions
];
optional-dependencies = {
colordiff = [ rich ];
fastimport = [ fastimport ];
https = [ urllib3 ];
merge = [ merge3 ];
pgp = [
gpgme
gnupg
];
paramiko = [ paramiko ];
};
nativeCheckInputs = [
gevent
geventhttpclient
git
glibcLocales
pytestCheckHook
]
++ lib.flatten (lib.attrValues optional-dependencies);
enabledTestPaths = [ "tests" ];
disabledTests = [
# AssertionError: 'C:\\\\foo.bar\\\\baz' != 'C:\\foo.bar\\baz'
"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"
];
disabledTestPaths = [
# requires swift config file
"tests/contrib/test_swift_smoke.py"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "dulwich" ];
meta = with lib; {
description = "Implementation of the Git file formats and protocols";
longDescription = ''
Dulwich is a Python implementation of the Git file formats and protocols, which
does not depend on Git itself. All functionality is available in pure Python.
'';
homepage = "https://www.dulwich.io/";
changelog = "https://github.com/jelmer/dulwich/blob/dulwich-${src.tag}/NEWS";
license = with licenses; [
asl20
gpl2Plus
];
maintainers = with maintainers; [ koral ];
};
}