nixpkgs/pkgs/development/python-modules/ntfy/default.nix

40 lines
798 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, appdirs
2018-10-25 20:33:27 +00:00
, ruamel_yaml
, requests
, emoji
, sleekxmpp
, mock
2018-10-25 20:33:27 +00:00
, psutil
, python
# , dbus-python
}:
buildPythonPackage rec {
2018-10-25 20:33:27 +00:00
version = "2.6.0";
pname = "ntfy";
src = fetchFromGitHub {
owner = "dschep";
repo = "ntfy";
rev = "v${version}";
2018-10-25 20:33:27 +00:00
sha256 = "0hnwrybbk0gw0c6kw2zpx0x1rh3jb9qyrprcphzkv0jlhzdfkrp1";
};
2018-10-25 20:33:27 +00:00
propagatedBuildInputs = [ requests ruamel_yaml appdirs mock sleekxmpp emoji psutil ];
checkPhase = ''
HOME=$(mktemp -d) ${python.interpreter} setup.py test
'';
meta = with stdenv.lib; {
description = "A utility for sending notifications, on demand and when commands finish";
homepage = http://ntfy.rtfd.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ kamilchm ];
};
}