Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 51 lines 951 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}: 14 15buildPythonPackage rec { 16 pname = "pyicloud"; 17 version = "0.9.1"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "580b52e95f67a41ed86c56a514aa2b362f53fbaf23f16c69fb24e0d19fd373ee"; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 keyring 27 keyrings-alt 28 click 29 six 30 tzlocal 31 certifi 32 bitstring 33 ]; 34 35 checkInputs = [ unittest2 ]; 36 37 postPatch = '' 38 sed -i \ 39 -e 's!click>=6.0,<7.0!click!' \ 40 -e 's!keyring>=8.0,<9.0!keyring!' \ 41 -e 's!keyrings.alt>=1.0,<2.0!keyrings.alt!' \ 42 requirements.txt 43 ''; 44 45 meta = with lib; { 46 description = "PyiCloud is a module which allows pythonistas to interact with iCloud webservices"; 47 homepage = https://github.com/picklepete/pyicloud; 48 license = licenses.mit; 49 maintainers = [ maintainers.mic92 ]; 50 }; 51}