1{ lib, fetchFromGitHub, buildPythonPackage, pytest 2, ecdsa , mnemonic, protobuf, hidapi, trezor }: 3 4buildPythonPackage rec { 5 pname = "keepkey"; 6 version = "7.2.1"; 7 8 src = fetchFromGitHub { 9 owner = "keepkey"; 10 repo = "python-keepkey"; 11 rev = "v${version}"; 12 sha256 = "00hqppdj3s9y25x4ad59y8axq94dd4chhw9zixq32sdrd9v8z55a"; 13 }; 14 15 propagatedBuildInputs = [ protobuf hidapi trezor ]; 16 17 buildInputs = [ ecdsa mnemonic ]; 18 19 checkInputs = [ pytest ]; 20 21 # tests requires hardware 22 doCheck = false; 23 24 # Remove impossible dependency constraint 25 postPatch = "sed -i -e 's|hidapi==|hidapi>=|' setup.py"; 26 27 meta = with lib; { 28 description = "KeepKey Python client"; 29 homepage = "https://github.com/keepkey/python-keepkey"; 30 license = licenses.gpl3; 31 maintainers = with maintainers; [ np ]; 32 }; 33}