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