joinmarket: add private python package set

This is a nonfunctional refactoring commit.

It's needed because pkg `pyln-proto`, which is introduced in the next commit,
requires a different, incompatible version of `cryptography`, which
must be placed in a different python package set.
This commit is contained in:
Erik Arvstedt 2022-05-05 20:43:09 +02:00 committed by Jonas Nick
parent ca834cce84
commit 900836fe0d
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
3 changed files with 18 additions and 6 deletions

View File

@ -9,7 +9,7 @@ let self = {
cl-rest = pkgs.callPackage ./cl-rest { }; cl-rest = pkgs.callPackage ./cl-rest { };
clboss = pkgs.callPackage ./clboss { }; clboss = pkgs.callPackage ./clboss { };
clightning-plugins = pkgs.recurseIntoAttrs (import ./clightning-plugins pkgs self.nbPython3Packages); clightning-plugins = pkgs.recurseIntoAttrs (import ./clightning-plugins pkgs self.nbPython3Packages);
joinmarket = pkgs.callPackage ./joinmarket { inherit (self) nbPython3Packages; }; joinmarket = pkgs.callPackage ./joinmarket { nbPythonPackageOverrides = import ./python-packages self; };
lndinit = pkgs.callPackage ./lndinit { }; lndinit = pkgs.callPackage ./lndinit { };
liquid-swap = pkgs.python3Packages.callPackage ./liquid-swap { }; liquid-swap = pkgs.python3Packages.callPackage ./liquid-swap { };
rtl = pkgs.callPackage ./rtl { }; rtl = pkgs.callPackage ./rtl { };

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, applyPatches, fetchpatch, python3, nbPython3Packages, pkgs }: { stdenv, lib, fetchurl, applyPatches, fetchpatch, python3, nbPythonPackageOverrides, pkgs }:
let let
version = "0.9.5"; version = "0.9.5";
@ -17,7 +17,17 @@ let
]; ];
}; };
runtimePackages = with nbPython3Packages; [ pyPkgs = (python3.override {
packageOverrides = (self: super: let
overrides = nbPythonPackageOverrides self super;
in
overrides // {
cryptography = overrides.cryptography_3_3_2;
}
);
}).pkgs;
runtimePackages = with pyPkgs; [
joinmarketbase joinmarketbase
joinmarketclient joinmarketclient
joinmarketbitcoin joinmarketbitcoin

View File

@ -30,13 +30,15 @@ in {
base58 = callPackage ./specific-versions/base58.nix {}; base58 = callPackage ./specific-versions/base58.nix {};
# cryptography 3.3.2, required by joinmarketdaemon # cryptography 3.3.2, required by joinmarketdaemon
cryptography = callPackage ./specific-versions/cryptography {}; # Used in the private python package set for joinmarket (../joinmarket/default.nix)
cryptography_vectors = callPackage ./specific-versions/cryptography/vectors.nix {}; cryptography_3_3_2 = callPackage ./specific-versions/cryptography {
cryptography_vectors = callPackage ./specific-versions/cryptography/vectors.nix {};
};
# autobahn 20.12.3, required by joinmarketclient # autobahn 20.12.3, required by joinmarketclient
autobahn = callPackage ./specific-versions/autobahn.nix {}; autobahn = callPackage ./specific-versions/autobahn.nix {};
# tubes 0.2.0, required by klein # tubes 0.2.0, required by jmclient (via pkg `klein`)
tubes = callPackage ./specific-versions/tubes.nix {}; tubes = callPackage ./specific-versions/tubes.nix {};
# recommonmark 0.7.1, required by pyln-client # recommonmark 0.7.1, required by pyln-client