depot/third_party/nixpkgs/pkgs/development/python-modules/etesync/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

74 lines
1.1 KiB
Nix

{
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 ];
};
}