@@ -4,17 +4,21 @@
44, fetchFromGitHub
55, pytest-asyncio
66, pytestCheckHook
7+, pythonOlder
78}:
89
910buildPythonPackage rec {
1011 pname = "pysmartthings";
11− version = "0.7.6";
12+ version = "0.7.7";
13+ format = "setuptools";
14+
15+ disabled = pythonOlder "3.8";
1216
1317 src = fetchFromGitHub {
1418 owner = "andrewsayre";
1519 repo = pname;
1620 rev = version;
17− sha256 = "0m91lfzdbmq6qv6bihd278psi9ghldxpa1d0dsbii2zf338188qj";
21+ sha256 = "sha256-AzAiMn88tRRPwMpwSnKoS1XUERHbKz0sVm/TjcbTsGs=";
1822 };
1923
2024 propagatedBuildInputs = [
@@ -26,7 +30,14 @@ buildPythonPackage rec {
2630 pytestCheckHook
2731 ];
2832
29− pythonImportsCheck = [ "pysmartthings" ];
33+ postPatch = ''
34+ substituteInPlace setup.py \
35+ --replace "aiohttp>=3.8.0,<4.0.0" "aiohttp<=4.0.0"
36+ '';
37+
38+ pythonImportsCheck = [
39+ "pysmartthings"
40+ ];
3041
3142 meta = with lib; {
3243 description = "Python library for interacting with the SmartThings cloud API";