biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / blockchains / charge-lnd / default.nix
blob1ea8912a75352a539446cbffa52b9dc7d7f06730
1 { lib, fetchFromGitHub, python3Packages }:
3 python3Packages.buildPythonApplication rec {
4   pname = "charge-lnd";
5   version = "0.2.13";
7   src = fetchFromGitHub {
8     owner = "accumulator";
9     repo = pname;
10     rev = "refs/tags/v${version}";
11     sha256 = "sha256-mNU8bhiZqvYbNUU8vJNk9WbpAVrCTi9Fy3hlIpb06ac=";
12   };
14   propagatedBuildInputs = with python3Packages; [
15     aiorpcx
16     colorama
17     googleapis-common-protos
18     grpcio
19     protobuf
20     six
21     termcolor
22   ];
24   postInstall = ''
25     install README.md -Dt $out/share/doc/charge-lnd
26   '';
28   doInstallCheck = true;
29   installCheckPhase = ''
30     $out/bin/charge-lnd --help > /dev/null
31   '';
33   meta = with lib; {
34     description = "Simple policy-based fee manager for lightning network daemon";
35     homepage = "https://github.com/accumulator/charge-lnd";
36     license = licenses.gpl2Plus;
37     maintainers = with maintainers; [ mmilata mariaa144 ];
38     mainProgram = "charge-lnd";
39   };