nix-bitcoin/pkgs/python-packages/pyln-proto/default.nix
William Casarin ee4cdb0586 pyln-proto: relax pycparser constraint
This is a bit hostile to different nixpkgs versions

Signed-off-by: William Casarin <jb55@jb55.com>
2022-02-27 08:42:08 -08:00

39 lines
694 B
Nix

{ buildPythonPackage, clightning
, bitstring
, cryptography
, coincurve
, base58
, mypy
, pycparser
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pyln-proto";
version = clightning.version;
inherit (clightning) src;
propagatedBuildInputs = [
bitstring
cryptography
coincurve
pycparser
base58
mypy
setuptools-scm
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
postPatch = ''
sed -i '
s|pycparser==2.20|pycparser~=2.20|
s|coincurve ~= 13.0|coincurve == 15.0.0|
s|base58 ~= 2.0.1|base58 == 2.1.0|
s|mypy==0.790|mypy == 0.812|
' requirements.txt
'';
}