commit
89e4618222
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
python2Packages.buildPythonApplication rec {
|
python2Packages.buildPythonApplication rec {
|
||||||
name = "electrum-${version}";
|
name = "electrum-${version}";
|
||||||
version = "2.7.18";
|
version = "2.8.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
|
url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
|
||||||
sha256 = "1l9krc7hqhqrm5bwp999bpykkcq4958qwvx8v0l5mxcxw8k7fkab";
|
sha256 = "1398s9d8j04is24il2xjb6xkj666pj21bsr90xglpsmfa1js9z7g";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python2Packages; [
|
propagatedBuildInputs = with python2Packages; [
|
||||||
|
@ -15,22 +15,22 @@ python2Packages.buildPythonApplication rec {
|
||||||
jsonrpclib
|
jsonrpclib
|
||||||
pbkdf2
|
pbkdf2
|
||||||
protobuf3_0
|
protobuf3_0
|
||||||
pyasn1
|
pyaes
|
||||||
pyasn1-modules
|
|
||||||
pycrypto
|
pycrypto
|
||||||
pyqt4
|
pyqt4
|
||||||
|
pysocks
|
||||||
qrcode
|
qrcode
|
||||||
requests
|
requests
|
||||||
slowaes
|
|
||||||
tlslite
|
tlslite
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
trezor
|
|
||||||
keepkey
|
keepkey
|
||||||
|
trezor
|
||||||
|
|
||||||
# TODO plugins
|
# TODO plugins
|
||||||
# matplotlib
|
|
||||||
# btchip
|
|
||||||
# amodem
|
# amodem
|
||||||
|
# btchip
|
||||||
|
# matplotlib
|
||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
@ -43,8 +43,11 @@ python2Packages.buildPythonApplication rec {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Despite setting usr_share above, these files are installed under
|
# Despite setting usr_share above, these files are installed under
|
||||||
# $out/nix ...
|
# $out/nix ...
|
||||||
mv $out/lib/python2.7/site-packages/nix/store/*/share $out
|
mv $out/lib/python2.7/site-packages/nix/store"/"*/share $out
|
||||||
rm -rf $out/lib/python2.7/site-packages/nix
|
rm -rf $out/lib/python2.7/site-packages/nix
|
||||||
|
|
||||||
|
substituteInPlace $out/share/applications/electrum.desktop \
|
||||||
|
--replace "Exec=electrum %u" "Exec=$out/bin/electrum %u"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ lib, fetchurl, buildPythonPackage, pbkdf2 }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "mnemonic";
|
||||||
|
version = "0.17";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://pypi/m/${pname}/${name}.tar.gz";
|
||||||
|
sha256 = "1hq6xb47jagfqf65iwcrh0065mj3521d2mxmahg7vfraihqyqdjn";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ pbkdf2 ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Implementation of Bitcoin BIP-0039";
|
||||||
|
homepage = https://github.com/trezor/python-mnemonic;
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ np ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ lib, fetchPypi, buildPythonPackage }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyaes";
|
||||||
|
version = "1.6.0";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0bp9bjqy1n6ij1zb86wz9lqa1dhla8qr1d7w2kxyn7jbj56sbmcw";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Pure-Python AES";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
homepage = https://github.com/ricmoo/pyaes;
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
{ lib, fetchurl, buildPythonPackage, protobuf3_0, hidapi, ecdsa, mnemonic }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "trezor";
|
||||||
|
version = "0.7.12";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://pypi/t/${pname}/${name}.tar.gz";
|
||||||
|
sha256 = "0ryqdk13x60qq5s68i9dfc1na4dka66kdxqycxignzg9k9ykaa8g";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ protobuf3_0 hidapi ];
|
||||||
|
|
||||||
|
buildInputs = [ ecdsa mnemonic ];
|
||||||
|
|
||||||
|
# There are no actual tests: "ImportError: No module named tests"
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
|
||||||
|
homepage = https://github.com/trezor/python-trezor;
|
||||||
|
license = lib.licenses.gpl3;
|
||||||
|
maintainers = with lib.maintainers; [ np ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -289,6 +289,8 @@ in {
|
||||||
|
|
||||||
plantuml = callPackage ../tools/misc/plantuml { };
|
plantuml = callPackage ../tools/misc/plantuml { };
|
||||||
|
|
||||||
|
pyaes = callPackage ../development/python-modules/pyaes.nix { };
|
||||||
|
|
||||||
pyatspi = if isPy3k then callPackage ../development/python-modules/pyatspi { } else throw "pyatspi not supported for interpreter ${python.executable}";
|
pyatspi = if isPy3k then callPackage ../development/python-modules/pyatspi { } else throw "pyatspi not supported for interpreter ${python.executable}";
|
||||||
|
|
||||||
pycairo = callPackage ../development/python-modules/pycairo { };
|
pycairo = callPackage ../development/python-modules/pycairo { };
|
||||||
|
@ -30780,48 +30782,9 @@ EOF
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
mnemonic = buildPythonPackage rec{
|
mnemonic = callPackage ../development/python-modules/mnemonic.nix { };
|
||||||
version = "0.12";
|
|
||||||
name = "mnemonic-${version}";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
trezor = callPackage ../development/python-modules/trezor.nix { };
|
||||||
url = "mirror://pypi/m/mnemonic/${name}.tar.gz";
|
|
||||||
sha256 = "0j5jm4v54135qqw455fw4ix2mhxhzjqvxji9gqkpxagk31cvbnj4";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ pbkdf2 ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Implementation of Bitcoin BIP-0039";
|
|
||||||
homepage = https://github.com/trezor/python-mnemonic;
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ np ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
trezor = buildPythonPackage rec{
|
|
||||||
version = "0.7.4";
|
|
||||||
name = "trezor-${version}";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/t/trezor/${name}.tar.gz";
|
|
||||||
sha256 = "18nr76jkdg24sb3r8cfbiq12b95gnh0amc0r1wx9mmg3pwq6jx6y";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ protobuf3_0 hidapi ];
|
|
||||||
|
|
||||||
buildInputs = with self; [ ecdsa mnemonic ];
|
|
||||||
|
|
||||||
# There are no actual tests: "ImportError: No module named tests"
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
|
|
||||||
homepage = https://github.com/trezor/python-trezor;
|
|
||||||
license = licenses.gpl3;
|
|
||||||
maintainers = with maintainers; [ np ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
keepkey = buildPythonPackage rec{
|
keepkey = buildPythonPackage rec{
|
||||||
version = "0.7.3";
|
version = "0.7.3";
|
||||||
|
|
Loading…
Reference in New Issue