nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 pyproject = true;
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 = {
37 description = "Python tool for Nitrokeys' firmware update";
38 mainProgram = "nkdfu";
39 homepage = "https://github.com/Nitrokey/nkdfu";
40 license = with lib.licenses; [ gpl2Only ];
41 maintainers = with lib.maintainers; [ frogamic ];
42 };
43}