2021-11-10 12:25:11 -08:00
|
|
|
{ buildPythonPackage, clightning, pyln-proto }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyln-bolt7";
|
|
|
|
|
|
|
|
# See fn `bolt_meta` in
|
|
|
|
# https://github.com/ElementsProject/lightning/blob/master/contrib/pyln-spec/bolt7/setup.py
|
|
|
|
version = "1.0.2.186";
|
|
|
|
|
|
|
|
inherit (clightning) src;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyln-proto ];
|
|
|
|
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-spec/bolt7";
|
|
|
|
|
2021-11-28 12:36:04 -08:00
|
|
|
# TODO-EXTERNAL:
|
2021-11-10 12:25:11 -08:00
|
|
|
# Remove when this fix is released
|
|
|
|
# https://github.com/ElementsProject/lightning/pull/4910
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's|pyln.proto|pyln-proto|' requirements.txt
|
|
|
|
'';
|
|
|
|
}
|