Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, stdenv, bleak, buildPythonPackage, ecpy, fetchPypi, future, hidapi, nfcpy, pillow, protobuf, pycrypto, pycryptodomex, pyelftools, python-u2flib-host, pythonOlder, websocket-client}:
buildPythonPackage rec { pname = "ledgerblue"; version = "0.1.48"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-LVRNcsTmJOR3zTBhbKV4V0zCQk0sk/Uf6kSmfbAhgfY="; };
propagatedBuildInputs = [ ecpy future hidapi nfcpy pillow protobuf pycrypto pycryptodomex pyelftools python-u2flib-host websocket-client ] ++ lib.optionals stdenv.isLinux [ bleak ];
# No tests doCheck = false;
pythonImportsCheck = [ "ledgerblue" ];
meta = with lib; { description = "Python library to communicate with Ledger Blue/Nano S"; homepage = "https://github.com/LedgerHQ/blue-loader-python"; license = licenses.asl20; maintainers = with maintainers; [ np ]; };}