@@ -12,17 +12,26 @@
1212
1313buildPythonPackage rec {
1414 pname = "pyatmo";
15− version = "4.1.0";
16− disabled = pythonOlder "3.5"; # uses type hints
15+ version = "4.2.0";
16+ disabled = pythonOlder "3.7";
1717
1818 src = fetchFromGitHub {
1919 owner = "jabesq";
2020 repo = "netatmo-api-python";
2121 rev = "v${version}";
22− sha256 = "0x3xq6ni9rl5k3vi0ydqafdzvza785ycnlgyikgqbkppbh3j33ig";
22+ sha256 = "0b2k1814zg3994k60xdw5gpsl8k1wy9zndd0b1p4dfb5qkx9f8kp";
2323 };
2424
25− propagatedBuildInputs = [ oauthlib requests requests_oauthlib ];
25+ postPatch = ''
26+ substituteInPlace setup.cfg \
27+ --replace "oauthlib==3.1.0" "oauthlib"
28+ '';
29+
30+ propagatedBuildInputs = [
31+ oauthlib
32+ requests
33+ requests_oauthlib
34+ ];
2635
2736 checkInputs = [
2837 freezegun