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 = "0.10.2"; 20 21 src = fetchFromGitHub { 22 owner = "picklepete"; 23 repo = pname; 24 rev = version; 25 sha256 = "0bxbhvimwbj2jm8dg7sil8yvln17xgjhvpwr4m783vwfcf76kdmy"; 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 checkInputs = [ 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}