1{ lib 2, bluepy 3, buildPythonPackage 4, fetchFromGitHub 5}: 6 7buildPythonPackage rec { 8 pname = "pyswitchbot"; 9 version = "0.13.0"; 10 format = "setuptools"; 11 12 src = fetchFromGitHub { 13 owner = "Danielhiversen"; 14 repo = "pySwitchbot"; 15 rev = version; 16 sha256 = "sha256-dx3OMzWJohOYCg7TnrqL4FLZoC+Q1dyJyUAdreDyfl0="; 17 }; 18 19 propagatedBuildInputs = [ 20 bluepy 21 ]; 22 23 # Project has no tests 24 doCheck = false; 25 26 pythonImportsCheck = [ 27 "switchbot" 28 ]; 29 30 meta = with lib; { 31 description = "Python library to control Switchbot IoT devices"; 32 homepage = "https://github.com/Danielhiversen/pySwitchbot"; 33 license = with licenses; [ mit ]; 34 maintainers = with maintainers; [ fab ]; 35 platforms = platforms.linux; 36 }; 37}