depot/third_party/nixpkgs/pkgs/development/python-modules/ledgerwallet/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

64 lines
1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
buildPythonPackage,
cryptography,
click,
construct,
ecdsa,
flit-core,
hidapi,
intelhex,
pillow,
protobuf3,
requests,
setuptools,
tabulate,
toml,
AppKit,
}:
buildPythonPackage rec {
pname = "ledgerwallet";
version = "0.2.4";
format = "pyproject";
src = fetchFromGitHub {
owner = "LedgerHQ";
repo = "ledgerctl";
rev = "v${version}";
hash = "sha256-IcStYYkKEdZxwgJKL8l2Y1BtO/Oncd4aKUAZD8umbHs=";
};
buildInputs = [
flit-core
setuptools
] ++ lib.optionals stdenv.isDarwin [ AppKit ];
propagatedBuildInputs = [
cryptography
click
construct
ecdsa
hidapi
intelhex
pillow
protobuf3
requests
tabulate
toml
];
pythonImportsCheck = [ "ledgerwallet" ];
meta = with lib; {
homepage = "https://github.com/LedgerHQ/ledgerctl";
description = "Library to control Ledger devices";
mainProgram = "ledgerctl";
license = licenses.mit;
maintainers = with maintainers; [
d-xo
erdnaxe
];
};
}