{ lib , aiohttp , buildPythonPackage , fetchFromGitHub , pythonOlder , pytestCheckHook }: buildPythonPackage rec { pname = "pyfronius"; version = "0.7.2"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "nielstron"; repo = pname; rev = "release-${version}"; hash = "sha256-eWe4nXKW9oP9lqehy6BK7ABaIqP3dgRX6ymW1Okfd9g="; }; propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyfronius" ]; meta = with lib; { description = "Python module to communicate with Fronius Symo"; homepage = "https://github.com/nielstron/pyfronius"; changelog = "https://github.com/nielstron/pyfronius/releases/tag/release-${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }