1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
{
lib,
buildPythonPackage,
cheroot,
colorama,
fetchFromGitHub,
fsspec,
hatch-vcs,
hatchling,
httpx,
pytest-xdist,
pytestCheckHook,
pytest-cov-stub,
python-dateutil,
wsgidav,
}:
buildPythonPackage rec {
pname = "webdav4";
version = "0.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "skshetry";
repo = "webdav4";
tag = "v${version}";
hash = "sha256-LgWYgERRuUODFzUnC08kDJTVRx9vanJ+OU8sREEMVwM=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [
httpx
python-dateutil
];
nativeCheckInputs = [
cheroot
colorama
pytest-xdist
pytestCheckHook
pytest-cov-stub
wsgidav
]
++ optional-dependencies.fsspec;
optional-dependencies = {
fsspec = [ fsspec ];
http2 = [ httpx.optional-dependencies.http2 ];
all = [
fsspec
httpx.optional-dependencies.http2
];
};
pythonImportsCheck = [ "webdav4" ];
disabledTests = [
# ValueError: Invalid dir_browser htdocs_path
"test_retry_reconnect_on_failure"
"test_open"
"test_open_binary"
"test_close_connection_if_nothing_is_read"
# Assertion error due to comparing output
"test_cp_cli"
"test_mv_cli"
"test_sync_remote_to_local"
];
disabledTestPaths = [
# Tests requires network access
"tests/test_client.py"
"tests/test_fsspec.py"
"tests/test_cli.py"
];
meta = {
description = "Library for interacting with WebDAV";
mainProgram = "dav";
homepage = "https://skshetry.github.io/webdav4/";
changelog = "https://github.com/skshetry/webdav4/releases/tag/v${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|