1{ 2 lib, 3 aiohttp, 4 async-timeout, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "volkszaehler"; 13 version = "0.5.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.10"; 17 18 src = fetchFromGitHub { 19 owner = "home-assistant-ecosystem"; 20 repo = "python-volkszaehler"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-7SB0x0BO9SMeMG1M/hH4fX7oDbtwPgCzyRrrUq1/WPo="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 dependencies = [ 28 aiohttp 29 async-timeout 30 ]; 31 32 # no tests are present 33 doCheck = false; 34 35 pythonImportsCheck = [ "volkszaehler" ]; 36 37 meta = with lib; { 38 description = "Python module for interacting with the Volkszahler API"; 39 homepage = "https://github.com/home-assistant-ecosystem/python-volkszaehler"; 40 changelog = "https://github.com/home-assistant-ecosystem/python-volkszaehler/releases/tag/${version}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}