2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
fastimport,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gevent,
|
|
|
|
geventhttpclient,
|
|
|
|
git,
|
|
|
|
glibcLocales,
|
|
|
|
gnupg,
|
|
|
|
gpgme,
|
|
|
|
paramiko,
|
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
setuptools-rust,
|
|
|
|
urllib3,
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.21.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dulwich";
|
2022-01-07 04:07:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jelmer";
|
|
|
|
repo = "dulwich";
|
|
|
|
rev = "refs/tags/${pname}-${version}";
|
|
|
|
hash = "sha256-iP+6KtaQ8tfOobovSLSJZogS/XWW0LuHgE2oV8uQW/8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-rust
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
fastimport = [ fastimport ];
|
2022-11-21 17:40:18 +00:00
|
|
|
pgp = [
|
|
|
|
gpgme
|
|
|
|
gnupg
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
paramiko = [ paramiko ];
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs =
|
|
|
|
[
|
|
|
|
gevent
|
|
|
|
geventhttpclient
|
|
|
|
git
|
|
|
|
glibcLocales
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
]
|
|
|
|
++ passthru.optional-dependencies.fastimport
|
|
|
|
++ passthru.optional-dependencies.pgp
|
|
|
|
++ passthru.optional-dependencies.paramiko;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
disabledTests = [
|
|
|
|
# OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'/build/tmpsqwlbpd1/\xc0'
|
|
|
|
"test_no_decode_encode"
|
|
|
|
# OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'/build/tmpwmtfyvo2/refs.git/refs/heads/\xcd\xee\xe2\xe0\xff\xe2\xe5\xf2\xea\xe01'
|
|
|
|
"test_cyrillic"
|
|
|
|
# OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'/build/tmpfseetobk/test/\xc0'
|
|
|
|
"test_commit_no_encode_decode"
|
2024-05-15 15:35:15 +00:00
|
|
|
# https://github.com/jelmer/dulwich/issues/1279
|
|
|
|
"test_init_connector"
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# missing test inputs
|
|
|
|
"dulwich/contrib/test_swift_smoke.py"
|
2024-02-07 01:22:34 +00:00
|
|
|
# flaky on high core count >4
|
|
|
|
"dulwich/tests/compat/test_client.py"
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dulwich" ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-11-21 17:40:18 +00:00
|
|
|
description = "Implementation of the Git file formats and protocols";
|
2021-02-05 17:12:51 +00:00
|
|
|
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/";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/jelmer/dulwich/blob/dulwich-${version}/NEWS";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [
|
|
|
|
asl20
|
|
|
|
gpl2Plus
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|