1{ 2 lib, 3 aiohttp, 4 aiounittest, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pytestCheckHook, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "pyfronius"; 13 version = "0.8.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "nielstron"; 18 repo = "pyfronius"; 19 tag = version; 20 hash = "sha256-Q1GMt9K9+wohFogXwGyAhyfSxSsmo+80Kca7F7VhksA="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ aiohttp ]; 26 27 nativeCheckInputs = [ 28 aiounittest 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "pyfronius" ]; 33 34 meta = with lib; { 35 description = "Python module to communicate with Fronius Symo"; 36 homepage = "https://github.com/nielstron/pyfronius"; 37 changelog = "https://github.com/nielstron/pyfronius/releases/tag/${src.tag}"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}