2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
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,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "etesync";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.12.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "f20f7e9922ee789c4b71379676ebfe656b675913fe524f2ee722e1b9ef4e5197";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
asn1crypto
|
|
|
|
cffi
|
|
|
|
cryptography
|
|
|
|
furl
|
|
|
|
idna
|
|
|
|
orderedmultidict
|
|
|
|
packaging
|
|
|
|
peewee
|
|
|
|
py
|
|
|
|
pyasn1
|
|
|
|
pycparser
|
|
|
|
pyparsing
|
|
|
|
pyscrypt
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
vobject
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/test_collections.py
|
|
|
|
pytest tests/test_crypto.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.etesync.com/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python API to interact with an EteSync server";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ valodim ];
|
|
|
|
};
|
|
|
|
}
|