1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatch-vcs, 6 hatchling, 7 httpx, 8 pytest-cov-stub, 9 pytestCheckHook, 10 pythonOlder, 11 respx, 12}: 13 14buildPythonPackage rec { 15 pname = "iaqualink"; 16 version = "0.6.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.12"; 20 21 src = fetchFromGitHub { 22 owner = "flz"; 23 repo = "iaqualink-py"; 24 tag = "v${version}"; 25 hash = "sha256-s/ZhcbTaCvn7ei1O4+P4fKPojitl+4gsatc9PZx+W2g="; 26 }; 27 28 build-system = [ 29 hatch-vcs 30 hatchling 31 ]; 32 33 dependencies = [ httpx ] ++ httpx.optional-dependencies.http2; 34 35 nativeCheckInputs = [ 36 pytest-cov-stub 37 pytestCheckHook 38 respx 39 ]; 40 41 pythonImportsCheck = [ "iaqualink" ]; 42 43 meta = with lib; { 44 description = "Python library for Jandy iAqualink"; 45 homepage = "https://github.com/flz/iaqualink-py"; 46 changelog = "https://github.com/flz/iaqualink-py/releases/tag/v${src.tag}"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}