about summary refs log tree commit diff
path: root/pkgs/development/python-modules/etesync/default.nix
blob: a871f3fb3a910a1f69e8b8ba58eb14ba11bb4e76 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
  lib,
  buildPythonPackage,
  fetchPypi,
  isPy27,
  appdirs,
  asn1crypto,
  cffi,
  cryptography,
  furl,
  idna,
  orderedmultidict,
  packaging,
  peewee,
  py,
  pyasn1,
  pycparser,
  pyparsing,
  pyscrypt,
  python-dateutil,
  pytz,
  requests,
  six,
  vobject,
  pytest,
}:

buildPythonPackage rec {
  pname = "etesync";
  version = "0.12.1";
  format = "setuptools";
  disabled = isPy27;

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

  propagatedBuildInputs = [
    appdirs
    asn1crypto
    cffi
    cryptography
    furl
    idna
    orderedmultidict
    packaging
    peewee
    py
    pyasn1
    pycparser
    pyparsing
    pyscrypt
    python-dateutil
    pytz
    requests
    six
    vobject
  ];

  nativeCheckInputs = [ pytest ];

  checkPhase = ''
    pytest tests/test_collections.py
    pytest tests/test_crypto.py
  '';

  meta = with lib; {
    homepage = "https://www.etesync.com/";
    description = "Python API to interact with an EteSync server";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ valodim ];
  };
}