about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/webdavclient3/default.nix
blob: e44c1eb2925920130c8f9420981f80cfb6ec0e07 (plain) (blame)
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
{ buildPythonPackage, fetchPypi, isPy27, lib, python-dateutil, lxml, requests
, pytestCheckHook }:

buildPythonPackage rec {
  pname = "webdavclient3";
  version = "3.14.6";
  format = "setuptools";

  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "bcd22586bb0d58abc26ca56054fd04228e704bd36073c3080f4597c1556c880d";
  };

  propagatedBuildInputs = [ python-dateutil lxml requests ];

  nativeCheckInputs = [ pytestCheckHook ];

  # disable tests completely, as most of them fail due to urllib3 not being able to establish a http connection
  doCheck = false;

  pythonImportsCheck = [ "webdav3.client" ];

  meta = with lib; {
    description = "Easy to use WebDAV Client for Python 3.x";
    homepage = "https://github.com/ezhov-evgeny/webdav-client-python-3";
    license = licenses.mit;
    maintainers = with maintainers; [ dmrauh ];
  };
}