git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #23751 from joachifm/electrum-2_8

Electrum 2 8

commit89e461822233683767eb809a9f8153b3c942e7cc authorJoachim F <joachifm@users.noreply.github.com> dateSat 11 Mar 2017, 20:02 (10 years ago) parent25d3a0bd575efc
5 files changed+81−50
pkgs/applications/misc/electrum/default.nix+12−9 pkgs/development/python-modules/mnemonic.nix+21 pkgs/development/python-modules/pyaes.nix+18 pkgs/development/python-modules/trezor.nix+26 pkgs/top-level/python-packages.nix+4−41
pkgs/applications/misc/electrum/default.nix+12−9
@@ -2,11 +2,11 @@
22
33python2Packages.buildPythonApplication rec {
44 name = "electrum-${version}";
5− version = "2.7.18";
5+ version = "2.8.1";
66
77 src = fetchurl {
88 url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
9− sha256 = "1l9krc7hqhqrm5bwp999bpykkcq4958qwvx8v0l5mxcxw8k7fkab";
9+ sha256 = "1398s9d8j04is24il2xjb6xkj666pj21bsr90xglpsmfa1js9z7g";
1010 };
1111
1212 propagatedBuildInputs = with python2Packages; [
@@ -15,22 +15,22 @@ python2Packages.buildPythonApplication rec {
1515 jsonrpclib
1616 pbkdf2
1717 protobuf3_0
18− pyasn1
19− pyasn1-modules
18+ pyaes
2019 pycrypto
2120 pyqt4
21+ pysocks
2222 qrcode
2323 requests
24− slowaes
2524 tlslite
2625
2726 # plugins
28− trezor
2927 keepkey
28+ trezor
29+
3030 # TODO plugins
31− # matplotlib
32− # btchip
3331 # amodem
32+ # btchip
33+ # matplotlib
3434 ];
3535
3636 preBuild = ''
@@ -43,8 +43,11 @@ python2Packages.buildPythonApplication rec {
4343 postInstall = ''
4444 # Despite setting usr_share above, these files are installed under
4545 # $out/nix ...
46− mv $out/lib/python2.7/site-packages/nix/store/*/share $out
46+ mv $out/lib/python2.7/site-packages/nix/store"/"*/share $out
4747 rm -rf $out/lib/python2.7/site-packages/nix
48+
49+ substituteInPlace $out/share/applications/electrum.desktop \
50+ --replace "Exec=electrum %u" "Exec=$out/bin/electrum %u"
4851 '';
4952
5053 doInstallCheck = true;
pkgs/development/python-modules/mnemonic.nixnew file+21
@@ -0,0 +1,21 @@
1+{ lib, fetchurl, buildPythonPackage, pbkdf2 }:
2+
3+buildPythonPackage rec {
4+ pname = "mnemonic";
5+ version = "0.17";
6+ name = "${pname}-${version}";
7+
8+ src = fetchurl {
9+ url = "mirror://pypi/m/${pname}/${name}.tar.gz";
10+ sha256 = "1hq6xb47jagfqf65iwcrh0065mj3521d2mxmahg7vfraihqyqdjn";
11+ };
12+
13+ propagatedBuildInputs = [ pbkdf2 ];
14+
15+ meta = {
16+ description = "Implementation of Bitcoin BIP-0039";
17+ homepage = https://github.com/trezor/python-mnemonic;
18+ license = lib.licenses.mit;
19+ maintainers = with lib.maintainers; [ np ];
20+ };
21+}
pkgs/development/python-modules/pyaes.nixnew file+18
@@ -0,0 +1,18 @@
1+{ lib, fetchPypi, buildPythonPackage }:
2+
3+buildPythonPackage rec {
4+ pname = "pyaes";
5+ version = "1.6.0";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "0bp9bjqy1n6ij1zb86wz9lqa1dhla8qr1d7w2kxyn7jbj56sbmcw";
11+ };
12+
13+ meta = {
14+ description = "Pure-Python AES";
15+ license = lib.licenses.mit;
16+ homepage = https://github.com/ricmoo/pyaes;
17+ };
18+}
pkgs/development/python-modules/trezor.nixnew file+26
@@ -0,0 +1,26 @@
1+{ lib, fetchurl, buildPythonPackage, protobuf3_0, hidapi, ecdsa, mnemonic }:
2+
3+buildPythonPackage rec {
4+ pname = "trezor";
5+ version = "0.7.12";
6+ name = "${pname}-${version}";
7+
8+ src = fetchurl {
9+ url = "mirror://pypi/t/${pname}/${name}.tar.gz";
10+ sha256 = "0ryqdk13x60qq5s68i9dfc1na4dka66kdxqycxignzg9k9ykaa8g";
11+ };
12+
13+ propagatedBuildInputs = [ protobuf3_0 hidapi ];
14+
15+ buildInputs = [ ecdsa mnemonic ];
16+
17+ # There are no actual tests: "ImportError: No module named tests"
18+ doCheck = false;
19+
20+ meta = {
21+ description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
22+ homepage = https://github.com/trezor/python-trezor;
23+ license = lib.licenses.gpl3;
24+ maintainers = with lib.maintainers; [ np ];
25+ };
26+}
pkgs/top-level/python-packages.nix+4−41
@@ -289,6 +289,8 @@ in {
289289
290290 plantuml = callPackage ../tools/misc/plantuml { };
291291
292+ pyaes = callPackage ../development/python-modules/pyaes.nix { };
293+
292294 pyatspi = if isPy3k then callPackage ../development/python-modules/pyatspi { } else throw "pyatspi not supported for interpreter ${python.executable}";
293295
294296 pycairo = callPackage ../development/python-modules/pycairo { };
@@ -30780,48 +30782,9 @@ EOF
3078030782 };
3078130783 };
3078230784
30783− mnemonic = buildPythonPackage rec{
30784− version = "0.12";
30785− name = "mnemonic-${version}";
30786−
30787− src = pkgs.fetchurl {
30788− url = "mirror://pypi/m/mnemonic/${name}.tar.gz";
30789− sha256 = "0j5jm4v54135qqw455fw4ix2mhxhzjqvxji9gqkpxagk31cvbnj4";
30790− };
30791−
30792− propagatedBuildInputs = with self; [ pbkdf2 ];
30793−
30794− meta = {
30795− description = "Implementation of Bitcoin BIP-0039";
30796− homepage = https://github.com/trezor/python-mnemonic;
30797− license = licenses.mit;
30798− maintainers = with maintainers; [ np ];
30799− };
30800− };
30801−
30802− trezor = buildPythonPackage rec{
30803− version = "0.7.4";
30804− name = "trezor-${version}";
30805−
30806− src = pkgs.fetchurl {
30807− url = "mirror://pypi/t/trezor/${name}.tar.gz";
30808− sha256 = "18nr76jkdg24sb3r8cfbiq12b95gnh0amc0r1wx9mmg3pwq6jx6y";
30809− };
30810−
30811− propagatedBuildInputs = with self; [ protobuf3_0 hidapi ];
30812−
30813− buildInputs = with self; [ ecdsa mnemonic ];
30785+ mnemonic = callPackage ../development/python-modules/mnemonic.nix { };
3081430786
30815− # There are no actual tests: "ImportError: No module named tests"
30816− doCheck = false;
30817−
30818− meta = {
30819− description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
30820− homepage = https://github.com/trezor/python-trezor;
30821− license = licenses.gpl3;
30822− maintainers = with maintainers; [ np ];
30823− };
30824− };
30787+ trezor = callPackage ../development/python-modules/trezor.nix { };
3082530788
3082630789 keepkey = buildPythonPackage rec{
3082730790 version = "0.7.3";