1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aiohttp 5, semver 6, asynctest 7, deepmerge 8, pytest-asyncio 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "blebox-uniapi"; 14 version = "1.3.3"; 15 16 src = fetchFromGitHub { 17 owner = "blebox"; 18 repo = "blebox_uniapi"; 19 rev = "v${version}"; 20 sha256 = "0qvv2697yhqjmgvh37h8wgz3a77n61kqmxvsk4pf47wn43hks15c"; 21 }; 22 23 postPatch = '' 24 substituteInPlace setup.py \ 25 --replace "pytest-runner" "" 26 ''; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 semver 31 ]; 32 33 checkInputs = [ 34 asynctest 35 deepmerge 36 pytest-asyncio 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ "blebox_uniapi" ]; 41 42 meta = with lib; { 43 description = "Python API for accessing BleBox smart home devices"; 44 homepage = "https://github.com/blebox/blebox_uniapi"; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ dotlambda ]; 47 }; 48}