2022-05-05 11:43:10 -07:00
|
|
|
{ buildPythonPackage
|
|
|
|
, clightning
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
2020-11-12 09:07:39 -08:00
|
|
|
, bitstring
|
|
|
|
, cryptography
|
|
|
|
, coincurve
|
|
|
|
, base58
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyln-proto";
|
2021-11-10 12:25:11 -08:00
|
|
|
version = clightning.version;
|
2022-05-05 11:43:10 -07:00
|
|
|
format = "pyproject";
|
2020-11-12 09:07:39 -08:00
|
|
|
|
|
|
|
inherit (clightning) src;
|
|
|
|
|
2022-05-05 11:43:10 -07:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
|
2020-11-12 09:07:39 -08:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
bitstring
|
|
|
|
cryptography
|
|
|
|
coincurve
|
|
|
|
base58
|
|
|
|
];
|
|
|
|
|
2022-05-05 11:43:10 -07:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-11-12 09:07:39 -08:00
|
|
|
|
2021-11-10 12:25:11 -08:00
|
|
|
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
|
2022-12-18 10:40:19 -08:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's|cryptography = "^36.0.1"|cryptography = "^38.0.0"|' pyproject.toml
|
|
|
|
'';
|
2020-11-12 09:07:39 -08:00
|
|
|
}
|