1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, aiohttp 6, asn1 7, python-dateutil 8, tenacity 9}: 10 11buildPythonPackage rec { 12 pname = "smart-meter-texas"; 13 version = "0.4.7"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "grahamwetzler"; 19 repo = "smart-meter-texas"; 20 rev = "v${version}"; 21 sha256 = "1hfvv3kpkc7i9mn58bjgvwjj0mi2syr8fv4r8bwbhq5sailma27j"; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace "pytest-runner" "" 27 ''; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 asn1 32 python-dateutil 33 tenacity 34 ]; 35 36 # no tests implemented 37 doCheck = false; 38 39 meta = with lib; { 40 description = "Connect to and retrieve data from the unofficial Smart Meter Texas API"; 41 homepage = "https://github.com/grahamwetzler/smart-meter-texas"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ dotlambda ]; 44 }; 45}