3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/ntfy/default.nix
2018-10-26 16:37:52 +02:00

40 lines
798 B
Nix

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, appdirs
, ruamel_yaml
, requests
, emoji
, sleekxmpp
, mock
, psutil
, python
# , dbus-python
}:
buildPythonPackage rec {
version = "2.6.0";
pname = "ntfy";
src = fetchFromGitHub {
owner = "dschep";
repo = "ntfy";
rev = "v${version}";
sha256 = "0hnwrybbk0gw0c6kw2zpx0x1rh3jb9qyrprcphzkv0jlhzdfkrp1";
};
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 ];
};
}