git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #147375 from fabaff/bump-pysmartthings

python3Packages.pysmartthings: 0.7.6 -> 0.7.7

commitae8025e4cfc937788cafd53a90716203e8013927 authorFabian Affolter <fabian@affolter-engineering.ch> dateThu 25 Nov 2021, 23:44 (5 years ago) parent5a3da1960fd107
1 file changed+14−3
pkgs/development/python-modules/pysmartthings/default.nix+14−3
pkgs/development/python-modules/pysmartthings/default.nix+14−3
@@ -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";