xin/pkgs/weepushover.nix

48 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2023-09-12 08:44:05 -06:00
{ buildPythonPackage
, lib
, fetchurl
, python
, weechat
, ...
2023-07-11 09:12:50 -06:00
}:
2022-09-23 10:25:38 -06:00
buildPythonPackage {
pname = "weepushover";
version = "0.1";
src = fetchurl {
2023-07-11 09:12:50 -06:00
url = "https://raw.githubusercontent.com/weechat/scripts/77a0c0bf2b0da64c33a50d8f8514d0467b0569e4/python/weepushover.py";
2022-09-23 10:25:38 -06:00
hash = "sha256-msOdNfYg88Wq00UJIRNu1OjKSUO0Kfq5rvLbIET2eo4=";
};
2023-09-12 08:44:05 -06:00
propagatedBuildInputs = [ ];
2022-09-23 10:25:38 -06:00
dontUnpack = true;
2023-09-12 08:44:05 -06:00
passthru.scripts = [ "weepushover.py" ];
2022-09-23 10:25:38 -06:00
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;
2023-09-12 08:44:05 -06:00
maintainers = with maintainers; [ qbit ];
2022-09-23 10:25:38 -06:00
};
}