2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cheroot
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, defusedxml
|
|
|
|
, jinja2
|
|
|
|
, json5
|
|
|
|
, python-pam
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2022-08-21 13:32:41 +00:00
|
|
|
, webtest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wsgidav";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.3.2";
|
|
|
|
pyproject = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mar10";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "wsgidav";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-93+8h+vRLnspQ/lmdjKYpzSEJSKcqCkB4qRqTuKHNRA=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2022-09-30 11:47:45 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-08-21 13:32:41 +00:00
|
|
|
defusedxml
|
|
|
|
jinja2
|
|
|
|
json5
|
|
|
|
python-pam
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
cheroot
|
|
|
|
pytestCheckHook
|
|
|
|
requests
|
|
|
|
webtest
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"wsgidav"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generic and extendable WebDAV server based on WSGI";
|
|
|
|
homepage = "https://wsgidav.readthedocs.io/";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/mar10/wsgidav/blob/v${version}/CHANGELOG.md";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "wsgidav";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
}
|