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