2020-01-10 23:27:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-02-05 13:51:50 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, certifi
|
|
|
|
, click
|
2020-01-10 23:27:37 +00:00
|
|
|
, keyring
|
|
|
|
, keyrings-alt
|
2021-02-05 13:51:50 +00:00
|
|
|
, pytz
|
|
|
|
, requests
|
2020-01-10 23:27:37 +00:00
|
|
|
, six
|
|
|
|
, tzlocal
|
2021-02-05 13:51:50 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
2020-02-27 07:48:28 +00:00
|
|
|
, future
|
2020-01-10 23:27:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyicloud";
|
2021-02-05 13:51:50 +00:00
|
|
|
version = "0.10.2";
|
2020-01-10 23:27:37 +00:00
|
|
|
|
2021-02-05 13:51:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "picklepete";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0bxbhvimwbj2jm8dg7sil8yvln17xgjhvpwr4m783vwfcf76kdmy";
|
2020-01-10 23:27:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-02-05 13:51:50 +00:00
|
|
|
certifi
|
|
|
|
click
|
|
|
|
future
|
2020-01-10 23:27:37 +00:00
|
|
|
keyring
|
|
|
|
keyrings-alt
|
2021-02-05 13:51:50 +00:00
|
|
|
pytz
|
|
|
|
requests
|
2020-01-10 23:27:37 +00:00
|
|
|
six
|
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
2021-02-05 13:51:50 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-01-10 23:27:37 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i \
|
2020-05-31 00:39:29 +01:00
|
|
|
-e 's!click>=.*!click!' \
|
|
|
|
-e 's!keyring>=.*!keyring!' \
|
|
|
|
-e 's!keyrings.alt>=.*!keyrings.alt!' \
|
|
|
|
-e 's!tzlocal==.*!tzlocal!' \
|
2020-01-10 23:27:37 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|