add clightning python pkgs
This commit is contained in:
parent
1a16e55237
commit
e62e163177
6 changed files with 65 additions and 12 deletions
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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue