36 lines
714 B
Nix
36 lines
714 B
Nix
# based on: <https://github.com/fort-nix/nix-bitcoin/blob/master/pkgs/python-packages/pyln-client/default.nix>
|
|
{
|
|
clightning,
|
|
pyln-bolt7,
|
|
pyln-proto,
|
|
python3,
|
|
stdenv,
|
|
unzip,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "pyln-client";
|
|
format = "pyproject";
|
|
|
|
inherit (clightning) src version;
|
|
sourceRoot = "clightning-v${clightning.version}/contrib/pyln-client";
|
|
|
|
nativeBuildInputs = [
|
|
python3.pkgs.poetry-core
|
|
python3.pkgs.pypaBuildHook
|
|
python3.pkgs.pypaInstallHook
|
|
unzip # used by `unpackPhase`
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pyln-bolt7
|
|
pyln-proto
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
python3.pkgs.pytestCheckHook
|
|
];
|
|
|
|
doCheck = true;
|
|
strictDeps = true;
|
|
}
|