nix-bitcoin/pkgs/python-packages/pyln-proto/default.nix
Erik Arvstedt 9da4d1e8c0
python-packages: update to NixOS 25.05
- Cryptography contains no relevant backwards-incompatible changes
https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst#4400---2024-11-27

- Other updates are minor maintenance releases
2025-06-10 13:45:57 +02:00

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