2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
|
|
|
, fastimport
|
|
|
|
, fetchPypi
|
|
|
|
, gevent
|
|
|
|
, geventhttpclient
|
|
|
|
, git
|
|
|
|
, glibcLocales
|
2022-09-30 11:47:45 +00:00
|
|
|
, gnupg
|
2021-05-28 09:39:13 +00:00
|
|
|
, gpgme
|
2022-05-18 14:49:53 +00:00
|
|
|
, paramiko
|
2022-09-30 11:47:45 +00:00
|
|
|
, pytestCheckHook
|
2022-01-07 04:07:37 +00:00
|
|
|
, pythonOlder
|
2022-11-21 17:40:18 +00:00
|
|
|
, urllib3
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.21.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dulwich";
|
2022-01-07 04:07:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-cJVeTiSd3abjSkY2uQ906THlWPmTsXxSVw+mFEuZMQM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
fastimport = [
|
|
|
|
fastimport
|
|
|
|
];
|
|
|
|
pgp = [
|
|
|
|
gpgme
|
|
|
|
gnupg
|
|
|
|
];
|
|
|
|
paramiko = [
|
|
|
|
paramiko
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-28 09:39:13 +00:00
|
|
|
gevent
|
|
|
|
geventhttpclient
|
|
|
|
git
|
|
|
|
glibcLocales
|
2022-09-30 11:47:45 +00:00
|
|
|
pytestCheckHook
|
2022-11-21 17:40:18 +00:00
|
|
|
] ++ 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"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# missing test inputs
|
|
|
|
"dulwich/contrib/test_swift_smoke.py"
|
|
|
|
];
|
|
|
|
|
2022-01-07 04:07:37 +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/";
|
|
|
|
changelog = "https://github.com/dulwich/dulwich/blob/dulwich-${version}/NEWS";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = with licenses; [ asl20 gpl2Plus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|