Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, fire, tqdm, intelhex, libusb1 }: 2 3buildPythonPackage rec { 4 pname = "nkdfu"; 5 version = "0.2"; 6 format = "flit"; 7 8 src = fetchPypi { 9 inherit pname version; 10 hash = "sha256-8l913dOCxHKFtpQ83p9RV3sUlu0oT5PVi14FSuYJ9fg="; 11 }; 12 13 propagatedBuildInputs = [ 14 fire 15 tqdm 16 intelhex 17 libusb1 18 ]; 19 20 # no tests 21 doCheck = false; 22 23 pythonImportsCheck = [ "nkdfu" ]; 24 25 meta = with lib; { 26 description = "Python tool for Nitrokeys' firmware update"; 27 homepage = "https://github.com/Nitrokey/nkdfu"; 28 license = with licenses; [ gpl2Only ]; 29 maintainers = with maintainers; [ frogamic ]; 30 }; 31}