Merge fort-nix/nix-bitcoin#423: Misc. improvements
4a74b7de08clightning: work around unsupported seccomp syscall (Erik Arvstedt)38a843d005clightning: update python pkgs to new version (Erik Arvstedt)6ad7107ddbupdate nixpkgs (Erik Arvstedt)f58d67677enetns-isolation: separate host and netns setup (Erik Arvstedt)cb6e5ef702netns-isolation: fix routing issues due to netns restarting (Erik Arvstedt)7f77147b60makeShell: minor improvements (Erik Arvstedt)a5730eb736makeShell: make the help msg a shell derivation variable (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: ACK4a74b7de08Tree-SHA512: 75454b51db6d7ab41590d8579e0a5136e5ac1be78d5c2f547c6ef1982c0de679968879bb9bac57dd66413f59a4659236601ab75414486b0137c7c43d73d22759
This commit is contained in:
commit
6673c8245c
8 changed files with 132 additions and 72 deletions
|
|
@ -19,6 +19,7 @@ in {
|
|||
|
||||
pyln-client = clightningPkg ./pyln-client;
|
||||
pyln-proto = clightningPkg ./pyln-proto;
|
||||
pyln-bolt7 = clightningPkg ./pyln-bolt7;
|
||||
pylightning = clightningPkg ./pylightning;
|
||||
|
||||
## Specific versions of packages that already exist in nixpkgs
|
||||
|
|
|
|||
22
pkgs/python-packages/pyln-bolt7/default.nix
Normal file
22
pkgs/python-packages/pyln-bolt7/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ buildPythonPackage, clightning, pyln-proto }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyln-bolt7";
|
||||
|
||||
# See fn `bolt_meta` in
|
||||
# https://github.com/ElementsProject/lightning/blob/master/contrib/pyln-spec/bolt7/setup.py
|
||||
version = "1.0.2.186";
|
||||
|
||||
inherit (clightning) src;
|
||||
|
||||
propagatedBuildInputs = [ pyln-proto ];
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-spec/bolt7";
|
||||
|
||||
# TODO-EXTERNAL
|
||||
# Remove when this fix is released
|
||||
# https://github.com/ElementsProject/lightning/pull/4910
|
||||
postPatch = ''
|
||||
sed -i 's|pyln.proto|pyln-proto|' requirements.txt
|
||||
'';
|
||||
}
|
||||
|
|
@ -1,12 +1,14 @@
|
|||
{ buildPythonPackage, clightning, recommonmark }:
|
||||
{ buildPythonPackage, clightning, pyln-bolt7, recommonmark, setuptools-scm }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyln-client";
|
||||
version = "0.10.1"; # defined in ${src}/contrib/pyln-client/pyln/client/__init__.py
|
||||
version = clightning.version;
|
||||
|
||||
inherit (clightning) src;
|
||||
|
||||
propagatedBuildInputs = [ recommonmark ];
|
||||
propagatedBuildInputs = [ pyln-bolt7 recommonmark setuptools-scm ];
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/contrib/${pname}";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,11 +4,12 @@
|
|||
, coincurve
|
||||
, base58
|
||||
, mypy
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyln-proto";
|
||||
version = "0.10.1"; # defined in ${src}/contrib/pyln-proto/setup.py
|
||||
version = clightning.version;
|
||||
|
||||
inherit (clightning) src;
|
||||
|
||||
|
|
@ -18,8 +19,17 @@ buildPythonPackage rec {
|
|||
coincurve
|
||||
base58
|
||||
mypy
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/contrib/${pname}";
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
|
||||
postPatch = ''
|
||||
sed -i '
|
||||
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
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue