ntfy: pin SQLAlchemy at 1.4.46

This commit is contained in:
Robert Schütz 2023-03-11 10:13:21 -08:00
parent bb76791b65
commit e8b6c2ff8f
2 changed files with 17 additions and 3 deletions

View file

@ -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";

View file

@ -10395,7 +10395,7 @@ with pkgs;
# ntfsprogs are merged into ntfs-3g
ntfsprogs = pkgs.ntfs3g;
ntfy = callPackage ../tools/misc/ntfy { python = python39; };
ntfy = callPackage ../tools/misc/ntfy { };
ntfy-sh = callPackage ../tools/misc/ntfy-sh { };