Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 39 lines 771 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, appdirs 5, click 6, construct 7, cryptography 8, pytest 9, zeroconf 10, attrs 11, pytz 12, tqdm 13, netifaces 14}: 15 16buildPythonPackage rec { 17 pname = "python-miio"; 18 version = "0.4.8"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "19423b3386b23d2e0fc94a8f6a358bcfbb44eed05376e33fd434d26d168bd18c"; 23 }; 24 25 checkInputs = [ pytest ]; 26 propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ]; 27 28 checkPhase = '' 29 pytest 30 ''; 31 32 meta = with stdenv.lib; { 33 description = "Python library for interfacing with Xiaomi smart appliances"; 34 homepage = https://github.com/rytilahti/python-miio; 35 license = licenses.gpl3; 36 maintainers = with maintainers; [ flyfloh ]; 37 }; 38} 39