Skip to content

Commit 3559369

Browse files
committed
ntfy: Switch to python3. Also fixes test failure.
Fixes test error: AttributeError: 'module' object has no attribute 'test_prowl'
1 parent cbe0b2e commit 3559369

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkgs/tools/misc/ntfy/default.nix

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{ stdenv, pythonPackages, fetchFromGitHub }:
1+
{ stdenv, python3Packages, fetchFromGitHub }:
22

3-
pythonPackages.buildPythonApplication rec {
3+
python3Packages.buildPythonApplication rec {
44
pname = "ntfy";
55
version = "2.7.0";
66

@@ -11,11 +11,11 @@ pythonPackages.buildPythonApplication rec {
1111
sha256 = "09f02cn4i1l2aksb3azwfb70axqhn7d0d0vl2r6640hqr74nc1cv";
1212
};
1313

14-
checkInputs = with pythonPackages; [
14+
checkInputs = with python3Packages; [
1515
mock
1616
];
1717

18-
propagatedBuildInputs = with pythonPackages; [
18+
propagatedBuildInputs = with python3Packages; [
1919
requests ruamel_yaml appdirs
2020
sleekxmpp dns
2121
emoji
@@ -25,7 +25,7 @@ pythonPackages.buildPythonApplication rec {
2525
];
2626

2727
checkPhase = ''
28-
HOME=$(mktemp -d) ${pythonPackages.python.interpreter} setup.py test
28+
HOME=$(mktemp -d) ${python3Packages.python.interpreter} setup.py test
2929
'';
3030

3131
meta = with stdenv.lib; {

0 commit comments

Comments
 (0)