11 buildPythonPackage rec {
12 pname = "pysmartthings";
14 format = "setuptools";
16 disabled = pythonOlder "3.8";
18 src = fetchFromGitHub {
19 owner = "andrewsayre";
22 hash = "sha256-r+f2+vEXJdQGDlbs/MhraFgEmsAf32PU282blLRLjzc=";
26 substituteInPlace setup.py \
27 --replace "aiohttp>=3.8.0,<4.0.0" "aiohttp<=4.0.0"
30 propagatedBuildInputs = [ aiohttp ];
32 # https://github.com/andrewsayre/pysmartthings/issues/80
33 doCheck = lib.versionOlder aiohttp.version "3.9.0";
40 pythonImportsCheck = [ "pysmartthings" ];
43 description = "Python library for interacting with the SmartThings cloud API";
44 homepage = "https://github.com/andrewsayre/pysmartthings";
45 changelog = "https://github.com/andrewsayre/pysmartthings/releases/tag/${version}";
46 license = with licenses; [ mit ];
47 maintainers = with maintainers; [ fab ];