Cryptography contains no relevant backwards-incompatible changes: https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst#4300---2024-07-20
37 lines
638 B
Nix
37 lines
638 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 'cryptography = "^42"' 'cryptography = "43.0.1"'
|
|
'';
|
|
}
|