Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 794 B view raw
1{ stdenv, fetchPypi, buildPythonPackage, ecdsa 2, mnemonic, protobuf3_2, hidapi }: 3 4buildPythonPackage rec { 5 name = "${pname}-${version}"; 6 pname = "keepkey"; 7 version = "0.7.3"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "14d2r8dlx997ypgma2k8by90acw7i3l7hfq4gar9lcka0lqfj714"; 12 }; 13 14 propagatedBuildInputs = [ protobuf3_2 hidapi ]; 15 16 buildInputs = [ ecdsa mnemonic ]; 17 18 # There are no actual tests: "ImportError: No module named tests" 19 doCheck = false; 20 21 # Remove impossible dependency constraint 22 postPatch = "sed -i -e 's|hidapi==|hidapi>=|' setup.py"; 23 24 meta = with stdenv.lib; { 25 description = "KeepKey Python client"; 26 homepage = https://github.com/keepkey/python-keepkey; 27 license = licenses.gpl3; 28 maintainers = with maintainers; [ np ]; 29 }; 30}