2020-11-12 09:07:39 -08:00
|
|
|
{ buildPythonPackage, clightning
|
|
|
|
, bitstring
|
|
|
|
, cryptography
|
|
|
|
, coincurve
|
|
|
|
, base58
|
|
|
|
, mypy
|
2022-01-22 13:16:15 -08:00
|
|
|
, pycparser
|
2021-11-10 12:25:11 -08:00
|
|
|
, setuptools-scm
|
2020-11-12 09:07:39 -08:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyln-proto";
|
2021-11-10 12:25:11 -08:00
|
|
|
version = clightning.version;
|
2020-11-12 09:07:39 -08:00
|
|
|
|
|
|
|
inherit (clightning) src;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bitstring
|
|
|
|
cryptography
|
|
|
|
coincurve
|
2022-01-22 13:16:15 -08:00
|
|
|
pycparser
|
2020-11-12 09:07:39 -08:00
|
|
|
base58
|
|
|
|
mypy
|
2021-11-10 12:25:11 -08:00
|
|
|
setuptools-scm
|
2020-11-12 09:07:39 -08:00
|
|
|
];
|
|
|
|
|
2021-11-10 12:25:11 -08:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
2020-11-12 09:07:39 -08:00
|
|
|
|
2021-11-10 12:25:11 -08:00
|
|
|
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '
|
|
|
|
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
|
|
|
|
'';
|
2020-11-12 09:07:39 -08:00
|
|
|
}
|