2018-10-01 23:13:03 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, hidapi, pyscard, ecdsa }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "btchip-python";
|
2020-11-04 14:41:20 +00:00
|
|
|
version = "0.1.31";
|
2018-10-01 23:13:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-04 14:41:20 +00:00
|
|
|
sha256 = "4167f3c6ea832dd189d447d0d7a8c2a968027671ae6f43c680192f2b72c39b2c";
|
2018-10-01 23:13:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ hidapi pyscard ecdsa ];
|
|
|
|
|
|
|
|
# tests requires hardware
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python communication library for Ledger Hardware Wallet products";
|
|
|
|
homepage = "https://github.com/LedgerHQ/btchip-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|