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,38 +1,30 @@
{ buildPythonPackage, clightning
{ buildPythonPackage
, clightning
, poetry-core
, pytestCheckHook
, bitstring
, cryptography
, coincurve
, base58
, mypy
, pycparser
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pyln-proto";
version = clightning.version;
format = "pyproject";
inherit (clightning) src;
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
bitstring
cryptography
coincurve
pycparser
base58
mypy
setuptools-scm
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
checkInputs = [ pytestCheckHook ];
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
postPatch = ''
sed -i '
s|pycparser==2.20|pycparser~=2.20|
s|coincurve ~= 13.0|coincurve == 15.0.0|
s|base58 ~= 2.0.1|base58 == 2.1.0|
s|mypy==0.790|mypy == 0.812|
' requirements.txt
'';
}