Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 36 lines 764 B view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pytest-runner 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "iaqualink"; 12 version = "0.4.0"; 13 disabled = pythonOlder "3.8"; 14 15 src = fetchFromGitHub { 16 owner = "flz"; 17 repo = "iaqualink-py"; 18 rev = "v${version}"; 19 sha256 = "13iwngjjqzr1pkmskbc2wakccvcjkf4bk65f4jp4ywpciilr4zjw"; 20 }; 21 22 nativeBuildInputs = [ pytest-runner ]; 23 24 propagatedBuildInputs = [ aiohttp ]; 25 26 checkInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "iaqualink" ]; 29 30 meta = with lib; { 31 description = "Python library for Jandy iAqualink"; 32 homepage = "https://github.com/flz/iaqualink-py"; 33 license = with licenses; [ bsd3 ]; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}