add clightning python pkgs
This commit is contained in:
committed by
Ian Shipman
parent
1a16e55237
commit
e62e163177
17
pkgs/python-packages/pylightning/default.nix
Normal file
17
pkgs/python-packages/pylightning/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ buildPythonPackage, clightning, pyln-client }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylightning";
|
||||
version = "0.8.0"; # defined in ${src}/contrib/pyln-client/pyln/client/__init__.py
|
||||
|
||||
inherit (clightning) src;
|
||||
|
||||
propagatedBuildInputs = [ pyln-client ];
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/contrib/${pname}";
|
||||
|
||||
# The clightning source contains pyln-client 0.8.0
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt --replace pyln-client==0.7.3 pyln-client==0.8.0
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user