1{ 2 lib, 3 async-timeout, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 tenacity, 9}: 10 11buildPythonPackage rec { 12 pname = "aiokef"; 13 version = "0.2.17"; 14 format = "setuptools"; 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 postPatch = '' 25 substituteInPlace tox.ini \ 26 --replace "--cov --cov-append --cov-fail-under=30 --cov-report=" "" \ 27 --replace "--mypy" "" 28 ''; 29 30 propagatedBuildInputs = [ 31 async-timeout 32 tenacity 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pytestFlagsArray = [ "tests" ]; 38 pythonImportsCheck = [ "aiokef" ]; 39 40 meta = with lib; { 41 description = "Python API for KEF speakers"; 42 homepage = "https://github.com/basnijholt/aiokef"; 43 license = with licenses; [ mit ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}