1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, certifi 5, click 6, keyring 7, keyrings-alt 8, pytz 9, requests 10, six 11, tzlocal 12, pytest-mock 13, pytestCheckHook 14, future 15}: 16 17buildPythonPackage rec { 18 pname = "pyicloud"; 19 version = "1.0.0"; 20 21 src = fetchFromGitHub { 22 owner = "picklepete"; 23 repo = pname; 24 rev = version; 25 hash = "sha256-2E1pdHHt8o7CGpdG+u4xy5OyNCueUGVw5CY8oicYd5w="; 26 }; 27 28 propagatedBuildInputs = [ 29 certifi 30 click 31 future 32 keyring 33 keyrings-alt 34 pytz 35 requests 36 six 37 tzlocal 38 ]; 39 40 nativeCheckInputs = [ 41 pytest-mock 42 pytestCheckHook 43 ]; 44 45 postPatch = '' 46 sed -i \ 47 -e 's!click>=.*!click!' \ 48 -e 's!keyring>=.*!keyring!' \ 49 -e 's!keyrings.alt>=.*!keyrings.alt!' \ 50 -e 's!tzlocal==.*!tzlocal!' \ 51 requirements.txt 52 ''; 53 54 meta = with lib; { 55 description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices"; 56 homepage = "https://github.com/picklepete/pyicloud"; 57 license = licenses.mit; 58 maintainers = [ maintainers.mic92 ]; 59 }; 60}