10 buildPythonPackage rec {
11 pname = "pysmartthings";
13 format = "setuptools";
15 disabled = pythonOlder "3.8";
17 src = fetchFromGitHub {
18 owner = "andrewsayre";
21 hash = "sha256-r+f2+vEXJdQGDlbs/MhraFgEmsAf32PU282blLRLjzc=";
25 substituteInPlace setup.py \
26 --replace "aiohttp>=3.8.0,<4.0.0" "aiohttp<=4.0.0"
29 propagatedBuildInputs = [
33 # https://github.com/andrewsayre/pysmartthings/issues/80
34 doCheck = lib.versionOlder aiohttp.version "3.9.0";
41 pythonImportsCheck = [
46 description = "Python library for interacting with the SmartThings cloud API";
47 homepage = "https://github.com/andrewsayre/pysmartthings";
48 changelog = "https://github.com/andrewsayre/pysmartthings/releases/tag/${version}";
49 license = with licenses; [ mit ];
50 maintainers = with maintainers; [ fab ];