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