xin/pkgs/weepushover.nix

44 lines
1.0 KiB
Nix
Raw Normal View History

2023-03-22 10:50:19 -06:00
{ buildPythonPackage, lib, fetchurl, python, weechat, ... }:
2022-09-23 10:25:38 -06:00
buildPythonPackage {
pname = "weepushover";
version = "0.1";
src = fetchurl {
url =
"https://raw.githubusercontent.com/weechat/scripts/77a0c0bf2b0da64c33a50d8f8514d0467b0569e4/python/weepushover.py";
hash = "sha256-msOdNfYg88Wq00UJIRNu1OjKSUO0Kfq5rvLbIET2eo4=";
};
propagatedBuildInputs = [ ];
dontUnpack = true;
passthru.scripts = [ "weepushover.py" ];
dontBuild = true;
doCheck = false;
2022-10-02 09:03:00 -06:00
format = "other";
2022-09-23 10:25:38 -06:00
installPhase = ''
runHook preInstall
install -D $src $out/share/weepushover.py
runHook postInstall
'';
dontPatchShebangs = true;
postFixup = ''
addToSearchPath program_PYTHONPATH $out/${python.sitePackages}
patchPythonScript $out/share/weepushover.py
'';
meta = with lib; {
inherit (weechat.meta) platforms;
2022-09-26 07:50:06 -06:00
homepage = "https://github.com/adtac/weepushover";
2022-09-23 10:25:38 -06:00
description = "push notifications from weechat to pushover";
license = licenses.mit;
maintainers = with maintainers; [ qbit ];
};
}