Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchPypi, buildPythonPackage, hidapi 2, pycrypto, pillow, protobuf, future, ecpy, python-u2flib-host, pycryptodomex 3, websocket_client 4}: 5 6buildPythonPackage rec { 7 pname = "ledgerblue"; 8 version = "0.1.31"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "f1fc7ab685780309a7220c6ee517d88072cc594a9615bcc18e68ed5f149fa432"; 13 }; 14 15 propagatedBuildInputs = [ 16 hidapi pycrypto pillow protobuf future ecpy python-u2flib-host pycryptodomex websocket_client 17 ]; 18 19 # No tests 20 doCheck = false; 21 22 meta = with stdenv.lib; { 23 description = "Python library to communicate with Ledger Blue/Nano S"; 24 homepage = "https://github.com/LedgerHQ/blue-loader-python"; 25 license = licenses.asl20; 26 maintainers = with maintainers; [ np ]; 27 }; 28}