nbPython3Packages: fix clightning pkgs

Also enable tests for the pyln-* pkgs.
This commit is contained in:
Erik Arvstedt 2022-05-05 20:43:10 +02:00 committed by Jonas Nick
parent 6bdf0ac3fb
commit f234e59ca5
No known key found for this signature in database
GPG key ID: 4861DBF262123605
7 changed files with 44 additions and 71 deletions

View file

@ -1,22 +1,17 @@
{ buildPythonPackage, clightning, pyln-proto }:
{ buildPythonPackage, poetry-core, pytestCheckHook, clightning, pyln-proto }:
buildPythonPackage rec {
pname = "pyln-bolt7";
# See fn `bolt_meta` in
# https://github.com/ElementsProject/lightning/blob/master/contrib/pyln-spec/bolt7/setup.py
version = "1.0.2.186";
# The version is defined here:
# https://github.com/ElementsProject/lightning/blob/master/contrib/pyln-spec/bolt7/pyproject.toml
version = "1.0.2.186.post0";
format = "pyproject";
inherit (clightning) src;
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ pyln-proto ];
checkInputs = [ pytestCheckHook ];
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-spec/bolt7";
# TODO-EXTERNAL:
# Remove when this fix is released
# https://github.com/ElementsProject/lightning/pull/4910
postPatch = ''
sed -i 's|pyln.proto|pyln-proto|' requirements.txt
'';
}