diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-09 22:08:10 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-11 11:57:25 +0100 |
commit | 9d7845b4ac2bf2042702de9b64f38bbd9abe877f (patch) | |
tree | c1ad186cd6a30144065303dcc6fae20691dc0c15 /pkgs/servers | |
parent | a0389fe5c691f80bb794a0aa9731d5e4ad6752ac (diff) |
home-assistant: override python-telegram-bot
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/home-assistant/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 420bc78690ba..78c3b288e130 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -115,6 +115,35 @@ let }; }); + python-telegram-bot = super.python-telegram-bot.overridePythonAttrs (oldAttrs: rec { + version = "13.15"; + src = fetchFromGitHub { + owner = "python-telegram-bot"; + repo = "python-telegram-bot"; + rev = "v${version}"; + hash = "sha256-EViSjr/nnuJIDTwV8j/O50hJkWV3M5aTNnWyzrinoyg="; + }; + propagatedBuildInputs = [ + self.APScheduler + self.cachetools + self.certifi + self.cryptography + self.decorator + self.future + self.tornado + self.urllib3 + ]; + setupPyGlobalFlags = [ "--with-upstream-urllib3" ]; + postPatch = '' + rm -r telegram/vendor + substituteInPlace requirements.txt \ + --replace "APScheduler==3.6.3" "APScheduler" \ + --replace "cachetools==4.2.2" "cachetools" \ + --replace "tornado==6.1" "tornado" + ''; + doCheck = false; + }); + pytradfri = super.pytradfri.overridePythonAttrs (oldAttrs: rec { version = "9.0.0"; src = fetchFromGitHub { |