1{ lib
2, buildPythonPackage
3, cheroot
4, fetchFromGitHub
5, pytestCheckHook
6, pythonOlder
7, defusedxml
8, jinja2
9, json5
10, python-pam
11, pyyaml
12, requests
13, setuptools
14, webtest
15}:
16
17buildPythonPackage rec {
18 pname = "wsgidav";
19 version = "4.3.0";
20 format = "pyproject";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchFromGitHub {
25 owner = "mar10";
26 repo = pname;
27 rev = "refs/tags/v${version}";
28 hash = "sha256-DEUoKoFELIOg5KX6hL1VgR18dtsery4ZzKksrxl0D7Q=";
29 };
30
31 nativeBuildInputs = [
32 setuptools
33 ];
34
35 propagatedBuildInputs = [
36 defusedxml
37 jinja2
38 json5
39 python-pam
40 pyyaml
41 ];
42
43 __darwinAllowLocalNetworking = true;
44
45 nativeCheckInputs = [
46 cheroot
47 pytestCheckHook
48 requests
49 webtest
50 ];
51
52 pythonImportsCheck = [
53 "wsgidav"
54 ];
55
56 meta = with lib; {
57 description = "Generic and extendable WebDAV server based on WSGI";
58 homepage = "https://wsgidav.readthedocs.io/";
59 changelog = "https://github.com/mar10/wsgidav/blob/v${version}/CHANGELOG.md";
60 license = with licenses; [ mit ];
61 maintainers = with maintainers; [ fab ];
62 };
63}