1{ stdenv, buildPythonPackage, fetchPypi, hidapi, pyscard, ecdsa }:
2
3buildPythonPackage rec {
4 pname = "btchip-python";
5 version = "0.1.28";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "10yxwlsr99gby338rsnczkfigcy36fiajpkr6f44438qlvbx02fs";
10 };
11
12 propagatedBuildInputs = [ hidapi pyscard ecdsa ];
13
14 # tests requires hardware
15 doCheck = false;
16
17 meta = with stdenv.lib; {
18 description = "Python communication library for Ledger Hardware Wallet products";
19 homepage = "https://github.com/LedgerHQ/btchip-python";
20 license = licenses.asl20;
21 };
22}