nix-bitcoin/pkgs/python-packages/pyln-proto/default.nix
Erik Arvstedt 7f8563afec
python3Packages.pyln-proto: update to nixos 24.05
- 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
2024-07-18 20:57:00 +02:00

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"' \
'';
}