Merge fort-nix/nix-bitcoin#445: clightning-plugins: add commando plugin

ee4cdb0586 pyln-proto: relax pycparser constraint (William Casarin)
2d6c4e829e readme: fix monitor c-lightning plugin link (William Casarin)
0bede274a8 clightning-plugins/commando: add module (Erik Arvstedt)
380ec3bb78 clightning-plugins: add commando (William Casarin)
80312ba9d7 python-packages/sha256: init at 0.1 (William Casarin)
71eccb73d6 python-packages/runes: init at 0.4.0 (William Casarin)
570e271695 clightning-plugins: bump to latest git (William Casarin)

Pull request description:

ACKs for top commit:
  erikarvstedt:
    ACK ee4cdb0586

Tree-SHA512: 2db97ee758f061ce72f8e049299c453cc4e9947d9af55c68745aa15bcd9529cb47defb52366ca216249441fb8e113c3b3b048a5381f41fd1ef80e677dae0fe37
This commit is contained in:
Jonas Nick 2022-02-27 18:38:09 +00:00
commit 2618af74e4
No known key found for this signature in database
GPG key ID: 4861DBF262123605
9 changed files with 110 additions and 3 deletions

View file

@ -6,8 +6,8 @@ let
src = pkgs.fetchFromGitHub {
owner = "lightningd";
repo = "plugins";
rev = "1f6f701bf1e60882b8fa61cb735e7033c8c29e3c";
sha256 = "088h0yxs0fbrr7r6mi4xmznf0a294i45fbc792xrmwchlay0k7jj";
rev = "b88c9278102ea9bffddce8143d31e939b31e835c";
sha256 = "sha256-qf4MYqP2Bwlqqn2y2LCIYuFq71r2m6IFT/w4noW6ePU=";
};
version = builtins.substring 0 7 src.rev;
@ -23,6 +23,10 @@ let
+ " --replace pyln-client~=0.9.3 pyln-client~=0.10.1";
};
rebalance = { description = "Keeps your channels balanced"; };
commando = {
description = "Enable RPC over lightning";
extraPkgs = [ nbPython3Packages.runes ];
};
summary = {
description = "Prints a summary of the node status";
extraPkgs = [ packaging requests ];

View file

@ -11,6 +11,8 @@ in {
urldecode = callPackage ./urldecode {};
chromalog = callPackage ./chromalog {};
txzmq = callPackage ./txzmq {};
sha256 = callPackage ./sha256 {};
runes = callPackage ./runes {};
joinmarketbase = joinmarketPkg ./jmbase;
joinmarketclient = joinmarketPkg ./jmclient;

View file

@ -4,6 +4,7 @@
, coincurve
, base58
, mypy
, pycparser
, setuptools-scm
}:
@ -17,6 +18,7 @@ buildPythonPackage rec {
bitstring
cryptography
coincurve
pycparser
base58
mypy
setuptools-scm
@ -27,6 +29,7 @@ buildPythonPackage rec {
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
postPatch = ''
sed -i '
s|pycparser==2.20|pycparser~=2.20|
s|coincurve ~= 13.0|coincurve == 15.0.0|
s|base58 ~= 2.0.1|base58 == 2.1.0|
s|mypy==0.790|mypy == 0.812|

View file

@ -0,0 +1,22 @@
{ sha256, lib, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage {
pname = "runes";
version = "0.4.0";
src = fetchFromGitHub {
repo = "runes";
owner = "rustyrussell";
rev = "7e3d7648db844ce2c78cc3e9e4f872f827252251";
sha256 = "sha256-e0iGLV/57gCpqA7vrW6JMFM0R6iAq5oFwUpZoGySwfs=";
};
propagatedBuildInputs = [ sha256 ];
meta = with lib; {
description = "Runes for authentication (like macaroons only simpler)";
homepage = "https://github.com/rustyrussell/runes";
maintainers = with maintainers; [ jb55 ];
license = licenses.mit;
};
}

View file

@ -0,0 +1,32 @@
{ lib, buildPythonPackage, fetchFromGitHub, cython }:
buildPythonPackage rec {
pname = "sha256";
version = builtins.substring 0 8 src.rev;
# The version from pypi is old/broken
src = fetchFromGitHub {
repo = "sha256";
owner = "cloudtools";
rev = "e0645d118f7296dde45397a755261f78d421bdee";
sha256 = "sha256-gEctMgF5qZiWelVHVCl3zazRNuaQ7lJP8ExI5xWEBVI=";
};
nativeBuildInputs = [ cython ];
doCheck = false;
configurePhase = ''
python setup.py sdist
'';
meta = with lib; {
description = ''
SHA-256 implementation that allows for setting and getting the mid-state
information.
'';
homepage = "https://github.com/cloudtools/sha256";
maintainers = with maintainers; [ jb55 ];
license = licenses.mit;
};
}