1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, pytz 8}: 9 10buildPythonPackage rec { 11 pname = "pyclimacell"; 12 version = "0.18.2"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "raman325"; 17 repo = pname; 18 rev = "v${version}"; 19 hash = "sha256-jWHjnebg4Aar48gid7bB7XYXOQtSqbmVmASsZd0YoPc="; 20 }; 21 22 propagatedBuildInputs = [ 23 aiohttp 24 pytz 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "pyclimacell" ]; 32 33 meta = with lib; { 34 description = "Python client for ClimaCell API"; 35 homepage = "https://github.com/raman325/pyclimacell"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}