mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 06:06:32 +01:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
python-dateutil,
|
|
requests,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "webdavclient3";
|
|
version = "3.14.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ezhov-evgeny";
|
|
repo = "webdav-client-python-3";
|
|
tag = "v${version}";
|
|
hash = "sha256-On2vCV3iLxqLYKaiUkwry/lZFjhzlAlU2OYYq/7rrcE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
lxml
|
|
python-dateutil
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "webdav3.client" ];
|
|
|
|
disabledTestPaths = [
|
|
# Tests require a local WebDAV instance
|
|
"tests/test_client_it.py"
|
|
"tests/test_client_resource_it.py"
|
|
"tests/test_cyrilic_client_it.py"
|
|
"tests/test_multi_client_it.py"
|
|
"tests/test_tailing_slash_client_it.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Easy to use WebDAV Client for Python 3.x";
|
|
homepage = "https://github.com/ezhov-evgeny/webdav-client-python-3";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
mainProgram = "wdc";
|
|
};
|
|
}
|