mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-27 02:12:45 +03:00
clightning: fix Python packages
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/
This commit is contained in:
parent
d1ef2a6e1e
commit
e4b8e14d3a
@ -31,7 +31,7 @@ let
|
|||||||
description = "Lightning node exporter for the prometheus timeseries server";
|
description = "Lightning node exporter for the prometheus timeseries server";
|
||||||
extraPkgs = [ prometheus_client ];
|
extraPkgs = [ prometheus_client ];
|
||||||
patchRequirements =
|
patchRequirements =
|
||||||
"--replace prometheus-client==0.6.0 prometheus-client==0.13.1"
|
"--replace prometheus-client==0.6.0 prometheus-client==0.15.0"
|
||||||
+ " --replace pyln-client~=0.9.3 pyln-client~=22.11rc1";
|
+ " --replace pyln-client~=0.9.3 pyln-client~=22.11rc1";
|
||||||
};
|
};
|
||||||
rebalance = {
|
rebalance = {
|
||||||
|
@ -27,4 +27,8 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [ pytestCheckHook ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
|
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i 's|cryptography = "^36.0.1"|cryptography = "^38.0.0"|' pyproject.toml
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user