diff --git a/pkgs/development/python-modules/crownstone-cloud/default.nix b/pkgs/development/python-modules/crownstone-cloud/default.nix index 632f0812f00e..86b77b994ea7 100644 --- a/pkgs/development/python-modules/crownstone-cloud/default.nix +++ b/pkgs/development/python-modules/crownstone-cloud/default.nix @@ -3,6 +3,7 @@ , asynctest , buildPythonPackage , fetchFromGitHub +, fetchpatch , certifi , pythonOlder , pytestCheckHook @@ -18,10 +19,19 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "crownstone"; repo = "crownstone-lib-python-cloud"; - rev = version; - sha256 = "sha256-CS1zeQiWPnsGCWixCsN9sz08mPORW5sVqIpSFPh0Qt0="; + rev = "refs/tags/${version}"; + hash = "sha256-CS1zeQiWPnsGCWixCsN9sz08mPORW5sVqIpSFPh0Qt0="; }; + patches = [ + # Remove asynctest, https://github.com/crownstone/crownstone-lib-python-cloud/pull/4 + (fetchpatch { + name = "remove-asynctest.patch"; + url = "https://github.com/crownstone/crownstone-lib-python-cloud/commit/7f22c9b284bf8d7f6f43e205816787dd3bb37e78.patch"; + hash = "sha256-LS1O9LVB14WyBXfuHf/bs1juJ59zWhJ8pL4aGtVrTG8="; + }) + ]; + propagatedBuildInputs = [ aiohttp asynctest