d6cb65fbde
Patching `pyln-proto` to use cryptography 38 lets us avoid adding many older Python pkg versions. The backwards incompatible changes from cryptography 36 to 38 only include the removal of deprecated fns that pyln-proto doesn't use. See string "BACKWARDS INCOMPATIBLE" in https://cryptography.io/en/latest/changelog/
35 lines
588 B
Nix
35 lines
588 B
Nix
{ buildPythonPackage
|
|
, clightning
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, bitstring
|
|
, cryptography
|
|
, coincurve
|
|
, base58
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyln-proto";
|
|
version = clightning.version;
|
|
format = "pyproject";
|
|
|
|
inherit (clightning) src;
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
bitstring
|
|
cryptography
|
|
coincurve
|
|
base58
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
|
|
|
|
postPatch = ''
|
|
sed -i 's|cryptography = "^36.0.1"|cryptography = "^38.0.0"|' pyproject.toml
|
|
'';
|
|
}
|