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

29 lines
686 B
Nix
Raw Permalink 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
# TODO-EXTERNAL:
# This patch is a variant (fixed relative path) of
# https://github.com/ElementsProject/lightning/pull/5574. This is already
# fixed upstream. Remove this after the next clightning release.
patches = [
./msat-null.patch
];
2020-11-12 09:07:39 -08:00
postUnpack = "sourceRoot=$sourceRoot/contrib/${pname}";
}