2022-05-05 11:43:10 -07:00
|
|
|
{ buildPythonPackage, poetry-core, pytestCheckHook, clightning, pyln-bolt7, pyln-proto }:
|
2020-11-12 09:07:39 -08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyln-client";
|
2021-11-10 12:25:11 -08:00
|
|
|
version = clightning.version;
|
2022-05-05 11:43:10 -07:00
|
|
|
format = "pyproject";
|
2020-11-12 09:07:39 -08:00
|
|
|
|
|
|
|
inherit (clightning) src;
|
|
|
|
|
2022-05-05 11:43:10 -07:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2021-11-10 12:25:11 -08:00
|
|
|
|
2022-05-05 11:43:10 -07:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyln-bolt7
|
|
|
|
pyln-proto
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-11-12 09:07:39 -08:00
|
|
|
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/contrib/${pname}";
|
2022-05-05 11:43:10 -07:00
|
|
|
|
|
|
|
# Fix version typo in pyproject.toml
|
|
|
|
# TODO-EXTERNAL:
|
|
|
|
# This is already fixed upstream. Remove this after the next clightning release.
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's|pyln-bolt7 = "^1.0.186"|pyln-bolt7 = "^1.0.2.186"|' pyproject.toml
|
|
|
|
'';
|
2020-11-12 09:07:39 -08:00
|
|
|
}
|