nbPython3Packages: fix clightning pkgs
Also enable tests for the pyln-* pkgs.
This commit is contained in:
committed by
Jonas Nick
parent
6bdf0ac3fb
commit
f234e59ca5
@@ -1,14 +1,27 @@
|
||||
{ buildPythonPackage, clightning, pyln-bolt7, recommonmark, setuptools-scm }:
|
||||
{ buildPythonPackage, poetry-core, pytestCheckHook, clightning, pyln-bolt7, pyln-proto }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyln-client";
|
||||
version = clightning.version;
|
||||
format = "pyproject";
|
||||
|
||||
inherit (clightning) src;
|
||||
|
||||
propagatedBuildInputs = [ pyln-bolt7 recommonmark setuptools-scm ];
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
propagatedBuildInputs = [
|
||||
pyln-bolt7
|
||||
pyln-proto
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user