1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aiohttp 5, requests 6, websocket-client 7, websockets 8}: 9 10buildPythonPackage rec { 11 pname = "sense-energy"; 12 version = "0.9.3"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "scottbonline"; 17 repo = "sense"; 18 rev = version; 19 sha256 = "sha256-LUM7SP03U3mRxCTjgxPRXh/ZLz15R04zBWOxLKnan98="; 20 }; 21 22 propagatedBuildInputs = [ 23 aiohttp 24 requests 25 websocket-client 26 websockets 27 ]; 28 29 # no tests implemented 30 doCheck = false; 31 32 pythonImportsCheck = [ 33 "sense_energy" 34 ]; 35 36 meta = with lib; { 37 description = "API for the Sense Energy Monitor"; 38 homepage = "https://github.com/scottbonline/sense"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ dotlambda ]; 41 }; 42}