joinmarket: 0.7.0 -> 0.7.2
This commit is contained in:
parent
75bbd4d4a6
commit
d4c0653c64
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, fetchurl, python3, pkgs }:
|
{ stdenv, fetchurl, python3, pkgs }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "0.7.0";
|
version = "0.7.2";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/JoinMarket-Org/joinmarket-clientserver/archive/v${version}.tar.gz";
|
url = "https://github.com/JoinMarket-Org/joinmarket-clientserver/archive/v${version}.tar.gz";
|
||||||
sha256 = "0ha73n3y5lykyj3pl97a619sxd2zz0lb32s5c61wm0l1h47v9l1g";
|
sha256 = "03gvs20d2cfzy9x82l6v4c69w0j9mr4p9zj2hpymnb6xs1yq6dr1";
|
||||||
};
|
};
|
||||||
|
|
||||||
python = python3.override {
|
python = python3.override {
|
||||||
@ -32,13 +32,11 @@ let
|
|||||||
joinmarketdaemon
|
joinmarketdaemon
|
||||||
];
|
];
|
||||||
|
|
||||||
genwallet = pkgs.writeScriptBin "genwallet" (builtins.readFile ./genwallet/genwallet.py);
|
|
||||||
|
|
||||||
pythonEnv = python.withPackages (_: runtimePackages);
|
pythonEnv = python.withPackages (_: runtimePackages);
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "joinmarket";
|
pname = "joinmarket";
|
||||||
inherit version src genwallet;
|
inherit version src;
|
||||||
|
|
||||||
buildInputs = [ pythonEnv ];
|
buildInputs = [ pythonEnv ];
|
||||||
|
|
||||||
@ -59,7 +57,7 @@ stdenv.mkDerivation {
|
|||||||
cpBin tumbler.py
|
cpBin tumbler.py
|
||||||
cpBin wallet-tool.py
|
cpBin wallet-tool.py
|
||||||
cpBin yg-privacyenhanced.py
|
cpBin yg-privacyenhanced.py
|
||||||
cp $genwallet/bin/genwallet $out/bin/jm-genwallet
|
cpBin genwallet.py
|
||||||
|
|
||||||
chmod +x -R $out/bin
|
chmod +x -R $out/bin
|
||||||
patchShebangs $out/bin
|
patchShebangs $out/bin
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
"""
|
|
||||||
Prototype: demonstrate you can automatically generate a wallet
|
|
||||||
"""
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
from optparse import OptionParser
|
|
||||||
from jmclient import load_program_config, add_base_options, SegwitLegacyWallet, create_wallet, jm_single
|
|
||||||
from jmbase.support import get_log, jmprint
|
|
||||||
|
|
||||||
log = get_log()
|
|
||||||
|
|
||||||
def main():
|
|
||||||
parser = OptionParser(
|
|
||||||
usage='usage: %prog [options] wallet_file_name password',
|
|
||||||
description='Create a wallet with the given wallet name and password.')
|
|
||||||
add_base_options(parser)
|
|
||||||
(options, args) = parser.parse_args()
|
|
||||||
if options.wallet_password_stdin:
|
|
||||||
stdin = sys.stdin.read()
|
|
||||||
password = stdin.encode("utf-8")
|
|
||||||
else:
|
|
||||||
assert len(args) > 1, "must provide password via stdin (see --help), or as second argument."
|
|
||||||
password = args[1].encode("utf-8")
|
|
||||||
load_program_config(config_path=options.datadir)
|
|
||||||
wallet_root_path = os.path.join(jm_single().datadir, "wallets")
|
|
||||||
wallet_name = os.path.join(wallet_root_path, args[0])
|
|
||||||
wallet = create_wallet(wallet_name, password, 4, SegwitLegacyWallet)
|
|
||||||
jmprint("recovery_seed:{}"
|
|
||||||
.format(wallet.get_mnemonic_words()[0]), "important")
|
|
||||||
wallet.close()
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-bitcointx";
|
pname = "python-bitcointx";
|
||||||
version = "1.1.1";
|
version = "1.1.1.post0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/Simplexum/${pname}/archive/${pname}-v${version}.tar.gz";
|
url = "https://github.com/Simplexum/${pname}/archive/${pname}-v${version}.tar.gz";
|
||||||
sha256 = "35edd694473517508367338888633954eaa91b2622b3caada8fd3030ddcacba2";
|
sha256 = "d12593b09785a7a4ce08cb1928815c2366e9f6e4fab317267462857bf83904b0";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
@ -9,7 +9,7 @@ cd $TMPDIR
|
|||||||
echo "Fetching latest release"
|
echo "Fetching latest release"
|
||||||
git clone https://github.com/simplexum/python-bitcointx 2> /dev/null
|
git clone https://github.com/simplexum/python-bitcointx 2> /dev/null
|
||||||
cd python-bitcointx
|
cd python-bitcointx
|
||||||
latest=$(git describe --tags `git rev-list --tags --max-count=1`)
|
latest=python-bitcointx-v1.1.1.post0
|
||||||
echo "Latest release is ${latest}"
|
echo "Latest release is ${latest}"
|
||||||
|
|
||||||
# GPG verification
|
# GPG verification
|
||||||
|
Loading…
Reference in New Issue
Block a user