Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ lib, stdenv, bleak, buildPythonPackage, ecpy, fetchPypi, hidapi, nfcpy, pillow, protobuf, pycrypto, pycryptodomex, pyelftools, pyserial, python-gnupg, python-u2flib-host, setuptools-scm, setuptools, websocket-client,}:
buildPythonPackage (finalAttrs: { pname = "ledgerblue"; version = "0.1.58"; pyproject = true;
src = fetchPypi { inherit (finalAttrs) pname version; hash = "sha256-EHniiz6h6qoH8srquVaiWIxpTDQaKp9strNtuIpHeTY="; };
build-system = [ setuptools setuptools-scm ];
pythonRelaxDeps = [ "protobuf" ];
pythonRemoveDeps = [ "future" ];
dependencies = [ ecpy hidapi nfcpy pillow protobuf pycrypto pycryptodomex pyelftools pyserial python-gnupg python-u2flib-host websocket-client ] ++ lib.optionals stdenv.hostPlatform.isLinux [ bleak ];
# No tests doCheck = false;
pythonImportsCheck = [ "ledgerblue" ];
meta = { description = "Python library to communicate with Ledger Blue/Nano S"; homepage = "https://github.com/LedgerHQ/blue-loader-python"; changelog = "https://github.com/LedgerHQ/blue-loader-python/releases/tag/v${finalAttrs.version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ np ]; };})