Skip to content

Commit

Permalink
python: fix ledgerblue 0.1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Trinkle committed Apr 23, 2018
1 parent 6d3df0e commit e3be0e4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/development/python-modules/ledgerblue/default.nix
@@ -1,5 +1,6 @@
{ stdenv, fetchPypi, buildPythonPackage, hidapi
, pycrypto, pillow, protobuf, future, ecpy
, pycrypto, pillow, protobuf, future, ecpy, python-u2flib-host
, requests
}:

buildPythonPackage rec {
Expand All @@ -12,7 +13,9 @@ buildPythonPackage rec {
sha256 = "ac403b074337b9b58cae97ea00b3d94fc8efeea1717a80c49e79dc8aad6fc58f";
};

buildInputs = [ hidapi pycrypto pillow protobuf future ecpy ];
buildInputs = [ hidapi pycrypto pillow protobuf future ecpy python-u2flib-host requests ];

doCheck = false;

meta = with stdenv.lib; {
description = "Python library to communicate with Ledger Blue/Nano S";
Expand Down
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/python-u2flib-host/default.nix
@@ -0,0 +1,25 @@
{ stdenv, fetchPypi, buildPythonPackage, coverage, coveralls
, cryptography, hidapi
}:

buildPythonPackage rec {
name = "${pname}-${version}";
pname = "python-u2flib-host";
version = "3.0.3";

src = fetchPypi {
inherit pname version;
sha256 = "02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb";
};

buildInputs = [ coverage coveralls cryptography hidapi ];

doCheck = false;

meta = with stdenv.lib; {
description = "Python library to communicate with Ledger Blue/Nano S";
homepage = https://github.com/LedgerHQ/blue-loader-python;
license = licenses.asl20;
maintainers = with maintainers; [ np ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -17501,6 +17501,8 @@ EOF

ledgerblue = callPackage ../development/python-modules/ledgerblue { };

python-u2flib-host = callPackage ../development/python-modules/python-u2flib-host { };

ecpy = callPackage ../development/python-modules/ecpy { };

semver = callPackage ../development/python-modules/semver { };
Expand Down

0 comments on commit e3be0e4

Please sign in to comment.