Commit 17e29666 authored by Robert Schütz's avatar Robert Schütz
Browse files

ntfy: don't override python3

parent 3e1cc243
Loading
Loading
Loading
Loading
+5 −14
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  python3,
  python3Packages,
  fetchFromGitHub,
  fetchpatch,
  withXmpp ? false, # sleekxmpp doesn't support python 3.10, see https://github.com/dschep/ntfy/issues/266
@@ -12,16 +12,7 @@
  withDbus ? stdenv.hostPlatform.isLinux,
}:

let
  python = python3.override {
    self = python;
    packageOverrides = self: super: {
      # databases, on which slack-sdk depends, is incompatible with SQLAlchemy 2.0
      sqlalchemy = super.sqlalchemy_1_4;
    };
  };
in
python.pkgs.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
  pname = "ntfy";
  version = "2.7.0";

@@ -74,10 +65,10 @@ python.pkgs.buildPythonApplication rec {
      --replace-fail "':sys_platform == \"darwin\"'" "'darwin'"
  '';

  build-system = with python.pkgs; [ setuptools ];
  build-system = with python3Packages; [ setuptools ];

  dependencies =
    with python.pkgs;
    with python3Packages;
    (
      [
        requests
@@ -106,7 +97,7 @@ python.pkgs.buildPythonApplication rec {
      ]
    );

  nativeCheckInputs = with python.pkgs; [
  nativeCheckInputs = with python3Packages; [
    mock
    pytestCheckHook
  ];