- coincurve has been bumped to v20 on pyln-proto master without further code changes, so using v19 is fine - the breaking changes in cryptography 42 don't affect pyln-proto https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst
38 lines
700 B
Nix
38 lines
700 B
Nix
{ buildPythonPackage
|
|
, clightning
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, bitstring
|
|
, cryptography
|
|
, coincurve
|
|
, base58
|
|
, pysocks
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyln-proto";
|
|
version = clightning.version;
|
|
format = "pyproject";
|
|
|
|
inherit (clightning) src;
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
bitstring
|
|
cryptography
|
|
coincurve
|
|
base58
|
|
pysocks
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail 'coincurve = "^18"' 'coincurve = "^19"' \
|
|
--replace-fail 'cryptography = "^41"' 'cryptography = "^42"' \
|
|
'';
|
|
}
|