Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 54 lines 991 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, keyring 6, keyrings-alt 7, click 8, six 9, tzlocal 10, certifi 11, bitstring 12, unittest2 13, future 14}: 15 16buildPythonPackage rec { 17 pname = "pyicloud"; 18 version = "0.9.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "dcebb32e474bc28aa77b944a0a64949ef3b5b852cbef6256fbc95347a04e777c"; 23 }; 24 25 propagatedBuildInputs = [ 26 requests 27 keyring 28 keyrings-alt 29 click 30 six 31 tzlocal 32 certifi 33 bitstring 34 future 35 ]; 36 37 checkInputs = [ unittest2 ]; 38 39 postPatch = '' 40 sed -i \ 41 -e 's!click>=.*!click!' \ 42 -e 's!keyring>=.*!keyring!' \ 43 -e 's!keyrings.alt>=.*!keyrings.alt!' \ 44 -e 's!tzlocal==.*!tzlocal!' \ 45 requirements.txt 46 ''; 47 48 meta = with lib; { 49 description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices"; 50 homepage = "https://github.com/picklepete/pyicloud"; 51 license = licenses.mit; 52 maintainers = [ maintainers.mic92 ]; 53 }; 54}