1{ lib 2, async-timeout 3, buildPythonPackage 4, fetchFromGitHub 5, pytest-cov 6, pytestCheckHook 7, pytest-mypy 8, pythonOlder 9, tenacity 10}: 11 12buildPythonPackage rec { 13 pname = "aiokef"; 14 version = "0.2.17"; 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "basnijholt"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "0ms0dwrpj80w55svcppbnp7vyl5ipnjfp1c436k5c7pph4q5pxk9"; 22 }; 23 24 propagatedBuildInputs = [ 25 async-timeout 26 tenacity 27 ]; 28 29 checkInputs = [ 30 pytest-cov 31 pytest-mypy 32 pytestCheckHook 33 ]; 34 35 pytestFlagsArray = [ "tests" ]; 36 pythonImportsCheck = [ "aiokef" ]; 37 38 meta = with lib; { 39 description = "Python API for KEF speakers"; 40 homepage = "https://github.com/basnijholt/aiokef"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}