nix-bitcoin/pkgs/python-packages/pyln-client/default.nix

28 lines
675 B
Nix
Raw Normal View History

{ buildPythonPackage, poetry-core, pytestCheckHook, clightning, pyln-bolt7, pyln-proto }:
2020-11-12 09:07:39 -08:00
buildPythonPackage rec {
pname = "pyln-client";
version = clightning.version;
format = "pyproject";
2020-11-12 09:07:39 -08:00
inherit (clightning) src;
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
pyln-bolt7
pyln-proto
];
checkInputs = [ pytestCheckHook ];
2020-11-12 09:07:39 -08:00
postUnpack = "sourceRoot=$sourceRoot/contrib/${pname}";
# 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
}