1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pytest-asyncio 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "pysmartthings"; 11 version = "0.7.6"; 12 13 src = fetchFromGitHub { 14 owner = "andrewsayre"; 15 repo = pname; 16 rev = version; 17 sha256 = "0m91lfzdbmq6qv6bihd278psi9ghldxpa1d0dsbii2zf338188qj"; 18 }; 19 20 propagatedBuildInputs = [ 21 aiohttp 22 ]; 23 24 checkInputs = [ 25 pytest-asyncio 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ "pysmartthings" ]; 30 31 meta = with lib; { 32 description = "Python library for interacting with the SmartThings cloud API"; 33 homepage = "https://github.com/andrewsayre/pysmartthings"; 34 changelog = "https://github.com/andrewsayre/pysmartthings/releases/tag/${version}"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}