1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "growattserver"; 11 version = "1.7.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "indykoning"; 16 repo = "PyPi_GrowattServer"; 17 tag = version; 18 hash = "sha256-rob2+uXuBD5Gf05rNFFEW210JxrTbWN7knk9Tnz7wOE="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ requests ]; 24 25 # Project has no tests 26 doCheck = false; 27 28 pythonImportsCheck = [ "growattServer" ]; 29 30 meta = with lib; { 31 description = "Python package to retrieve information from Growatt units"; 32 homepage = "https://github.com/indykoning/PyPi_GrowattServer"; 33 changelog = "https://github.com/indykoning/PyPi_GrowattServer/releases/tag/${src.tag}"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}