2020-01-10 23:27:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, keyring
|
|
|
|
, keyrings-alt
|
|
|
|
, click
|
|
|
|
, six
|
|
|
|
, tzlocal
|
|
|
|
, certifi
|
|
|
|
, bitstring
|
|
|
|
, unittest2
|
2020-02-27 07:48:28 +00:00
|
|
|
, future
|
2020-01-10 23:27:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyicloud";
|
2020-05-09 11:01:55 +01:00
|
|
|
version = "0.9.7";
|
2020-01-10 23:27:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:55 +01:00
|
|
|
sha256 = "dcebb32e474bc28aa77b944a0a64949ef3b5b852cbef6256fbc95347a04e777c";
|
2020-01-10 23:27:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
keyring
|
|
|
|
keyrings-alt
|
|
|
|
click
|
|
|
|
six
|
|
|
|
tzlocal
|
|
|
|
certifi
|
|
|
|
bitstring
|
2020-02-27 07:48:28 +00:00
|
|
|
future
|
2020-01-10 23:27:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ unittest2 ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i \
|
|
|
|
-e 's!click>=6.0,<7.0!click!' \
|
|
|
|
-e 's!keyring>=8.0,<9.0!keyring!' \
|
|
|
|
-e 's!keyrings.alt>=1.0,<2.0!keyrings.alt!' \
|
|
|
|
requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/picklepete/pyicloud";
|
2020-01-10 23:27:37 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|