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";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "4.3.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mar10";
|
|
|
|
repo = pname;
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-DEUoKoFELIOg5KX6hL1VgR18dtsery4ZzKksrxl0D7Q=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|