diff options
Diffstat (limited to 'pkgs/tools/misc/ntfy/default.nix')
-rw-r--r-- | pkgs/tools/misc/ntfy/default.nix | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgs/tools/misc/ntfy/default.nix b/pkgs/tools/misc/ntfy/default.nix index 3e10f18173865..fcf45ae493e68 100644 --- a/pkgs/tools/misc/ntfy/default.nix +++ b/pkgs/tools/misc/ntfy/default.nix @@ -1,6 +1,6 @@ { lib , stdenv -, python +, python39 , fetchFromGitHub , fetchpatch , withXmpp ? !stdenv.isDarwin @@ -12,7 +12,21 @@ }: let - ntfy-webpush = python.pkgs.callPackage ./webpush.nix { }; + python = python39.override { + packageOverrides = self: super: { + ntfy-webpush = self.callPackage ./webpush.nix { }; + + # databases, on which slack-sdk depends, is incompatible with SQLAlchemy 2.0 + sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec { + version = "1.4.46"; + src = self.fetchPypi { + pname = "SQLAlchemy"; + inherit version; + hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA="; + }; + }); + }; + }; in python.pkgs.buildPythonApplication rec { pname = "ntfy"; version = "2.7.0"; |