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