Skip to content

Commit 62dbc73

Browse files
authoredMay 31, 2017
Revert "fix electrum dependencies"
1 parent d4aecb3 commit 62dbc73

File tree

9 files changed

+86
-183
lines changed

9 files changed

+86
-183
lines changed
 

‎pkgs/development/python-modules/ecpy.nix

-21
This file was deleted.

‎pkgs/development/python-modules/ed25519.nix

-18
This file was deleted.

‎pkgs/development/python-modules/hidapi.nix

-30
This file was deleted.

‎pkgs/development/python-modules/keepkey.nix

-31
This file was deleted.

‎pkgs/development/python-modules/ledgerblue.nix

-22
This file was deleted.

‎pkgs/development/python-modules/libagent.nix

-25
This file was deleted.

‎pkgs/development/python-modules/semver.nix

-18
This file was deleted.

‎pkgs/development/python-modules/trezor.nix

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{ stdenv, fetchurl, buildPythonPackage
2-
, protobuf3_0, hidapi, ecdsa, mnemonic }:
1+
{ lib, fetchurl, buildPythonPackage, protobuf3_0, hidapi, ecdsa, mnemonic }:
32

43
buildPythonPackage rec {
54
pname = "trezor";
@@ -18,10 +17,10 @@ buildPythonPackage rec {
1817
# There are no actual tests: "ImportError: No module named tests"
1918
doCheck = false;
2019

21-
meta = with stdenv.lib; {
20+
meta = {
2221
description = "Python library for communicating with TREZOR Bitcoin Hardware Wallet";
2322
homepage = https://github.com/trezor/python-trezor;
24-
license = licenses.gpl3;
25-
maintainers = with maintainers; [ np ];
23+
license = lib.licenses.gpl3;
24+
maintainers = with lib.maintainers; [ np ];
2625
};
2726
}

‎pkgs/top-level/python-packages.nix

+82-13
Original file line numberDiff line numberDiff line change
@@ -29626,37 +29626,106 @@ EOF
2962629626
};
2962729627
};
2962829628

29629-
hidapi = callPackage ../development/python-modules/hidapi.nix { };
29629+
hidapi = buildPythonPackage rec{
29630+
version = "0.7.99.post15";
29631+
name = "hidapi-${version}";
29632+
29633+
src = pkgs.fetchurl {
29634+
url = "mirror://pypi/h/hidapi/${name}.tar.gz";
29635+
sha256 = "09wlr1d7mx80974bsq62j4pk80234jgl7ip4br0y43q6999dpcr0";
29636+
};
29637+
29638+
propagatedBuildInputs = with self; [ pkgs.libusb1 pkgs.udev cython ];
29639+
29640+
# Fix the USB backend library lookup
29641+
postPatch = ''
29642+
libusb=${pkgs.libusb1.dev}/include/libusb-1.0
29643+
test -d $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
29644+
sed -i -e "s|/usr/include/libusb-1.0|$libusb|" setup.py
29645+
'';
29646+
29647+
meta = {
29648+
description = "A Cython interface to the hidapi from https://github.com/signal11/hidapi";
29649+
homepage = https://github.com/trezor/cython-hidapi;
29650+
# license can actually be either bsd3 or gpl3
29651+
# see https://github.com/trezor/cython-hidapi/blob/master/LICENSE-orig.txt
29652+
license = licenses.bsd3;
29653+
maintainers = with maintainers; [ np ];
29654+
};
29655+
};
2963029656

2963129657
mnemonic = callPackage ../development/python-modules/mnemonic.nix { };
2963229658

2963329659
trezor = callPackage ../development/python-modules/trezor.nix { };
2963429660

29635-
keepkey = callPackage ../development/python-modules/keepkey.nix { };
29661+
keepkey = buildPythonPackage rec{
29662+
version = "0.7.3";
29663+
name = "keepkey-${version}";
29664+
29665+
src = pkgs.fetchurl {
29666+
url = "mirror://pypi/k/keepkey/${name}.tar.gz";
29667+
sha256 = "14d2r8dlx997ypgma2k8by90acw7i3l7hfq4gar9lcka0lqfj714";
29668+
};
29669+
29670+
propagatedBuildInputs = with self; [ protobuf3_0 hidapi ];
29671+
29672+
buildInputs = with self; [ ecdsa mnemonic ];
29673+
29674+
# There are no actual tests: "ImportError: No module named tests"
29675+
doCheck = false;
29676+
29677+
meta = {
29678+
description = "KeepKey Python client";
29679+
homepage = https://github.com/keepkey/python-keepkey;
29680+
license = licenses.gpl3;
29681+
maintainers = with maintainers; [ np ];
29682+
};
29683+
};
29684+
29685+
semver = buildPythonPackage rec {
29686+
name = "semver-${version}";
29687+
version = "2.2.1";
2963629688

29637-
semver = callPackage ../development/python-modules/semver.nix { };
29689+
src = pkgs.fetchurl {
29690+
url = "mirror://pypi/s/semver/${name}.tar.gz";
29691+
sha256 = "161gvsfpw0l8lnf1v19rvqc8b9f8n70cc8ppya4l0n6rwc1c1n4m";
29692+
};
2963829693

29639-
ed25519 = callPackage ../development/python-modules/ed25519.nix { };
29694+
meta = {
29695+
description = "Python package to work with Semantic Versioning (http://semver.org/)";
29696+
homepage = "https://github.com/k-bx/python-semver";
29697+
license = licenses.bsd3;
29698+
maintainers = with maintainers; [ np ];
29699+
};
29700+
};
2964029701

29641-
libagent = callPackage ../development/python-modules/libagent.nix { };
29702+
ed25519 = buildPythonPackage rec {
29703+
name = "ed25519-${version}";
29704+
version = "1.4";
2964229705

29643-
ledgerblue = callPackage ../development/python-modules/ledgerblue.nix { };
29706+
src = pkgs.fetchurl {
29707+
url = "mirror://pypi/e/ed25519/${name}.tar.gz";
29708+
sha256 = "0ahx1nkxa0xis3cw0h5c4fpgv8mq4znkq7kajly33lc3317bk499";
29709+
};
2964429710

29645-
ecpy = callPackage ../development/python-modules/ecpy.nix { };
29711+
meta = {
29712+
description = "Ed25519 public-key signatures";
29713+
homepage = "https://github.com/warner/python-ed25519";
29714+
license = licenses.mit;
29715+
maintainers = with maintainers; [ np ];
29716+
};
29717+
};
2964629718

2964729719
trezor_agent = buildPythonPackage rec{
29648-
version = "0.9.0";
29720+
version = "0.7.0";
2964929721
name = "trezor_agent-${version}";
2965029722

2965129723
src = pkgs.fetchurl {
2965229724
url = "mirror://pypi/t/trezor_agent/${name}.tar.gz";
29653-
sha256 = "1i5cdamlf3c0ym600pjklij74p8ifj9cv7xrpnrfl1b8nkadswbz";
29725+
sha256 = "1x1gwih6w8kxhpgmcp0v1k7mpmfsqiikkjca291sd0v2if24x7q1";
2965429726
};
2965529727

29656-
propagatedBuildInputs = with self; [
29657-
trezor libagent ecdsa ed25519
29658-
mnemonic keepkey semver
29659-
];
29728+
propagatedBuildInputs = with self; [ trezor ecdsa ed25519 mnemonic keepkey semver ];
2966029729

2966129730
meta = {
2966229731
description = "Using Trezor as hardware SSH agent";

0 commit comments

Comments
 (0)
Please sign in to comment.