mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 11:56:33 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
48 lines
903 B
Nix
48 lines
903 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
ecdsa,
|
|
hidapi,
|
|
libusb1,
|
|
mnemonic,
|
|
protobuf,
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keepkey";
|
|
version = "7.2.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "keepkey";
|
|
repo = "python-keepkey";
|
|
rev = "v${version}";
|
|
sha256 = "00hqppdj3s9y25x4ad59y8axq94dd4chhw9zixq32sdrd9v8z55a";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
ecdsa
|
|
hidapi
|
|
libusb1
|
|
mnemonic
|
|
protobuf
|
|
];
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
# tests requires hardware
|
|
doCheck = false;
|
|
|
|
# Remove impossible dependency constraint
|
|
postPatch = "sed -i -e 's|hidapi==|hidapi>=|' setup.py";
|
|
|
|
meta = {
|
|
description = "KeepKey Python client";
|
|
mainProgram = "keepkeyctl";
|
|
homepage = "https://github.com/keepkey/python-keepkey";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ np ];
|
|
};
|
|
}
|