Files
nix-bitcoin/pkgs/python-packages/pyln-proto/default.nix
T
2025-12-23 10:45:43 +01:00

40 lines
659 B
Nix

{ buildPythonPackage
, clightning
, hatchling
, pytestCheckHook
, bitstring
, cryptography
, coincurve
, base58
, pysocks
}:
buildPythonPackage rec {
pname = "pyln-proto";
version = clightning.version;
format = "pyproject";
inherit (clightning) src;
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'coincurve==20.0.0' 'coincurve==21.0.0'
'';
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
bitstring
cryptography
coincurve
base58
pysocks
];
checkInputs = [ pytestCheckHook ];
pythonNamespaces = [ "pyln" ];
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
}