1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 click, 6 fetchFromGitHub, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pykostalpiko"; 12 version = "1.1.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "Florian7843"; 19 repo = "pykostalpiko"; 20 rev = "v${version}"; 21 hash = "sha256-kmzFsOgmMb8bOkulg7G6vXEPdb0xizh7u5LjnHfEWWQ="; 22 }; 23 24 propagatedBuildInputs = [ 25 aiohttp 26 click 27 ]; 28 29 # Module has no tests 30 doCheck = false; 31 32 pythonImportsCheck = [ "pykostalpiko" ]; 33 34 meta = with lib; { 35 description = "Library and CLI-tool to fetch the data from a Kostal Piko inverter"; 36 homepage = "https://github.com/Florian7843/pykostalpiko"; 37 license = with licenses; [ mit ]; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}