about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/nkdfu/default.nix
blob: 28274467efb9e66ff93f9cfa0d39d032decbf48d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib, buildPythonPackage, fetchPypi, flit-core, fire, tqdm, intelhex, libusb1 }:

buildPythonPackage rec {
  pname = "nkdfu";
  version = "0.2";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-8l913dOCxHKFtpQ83p9RV3sUlu0oT5PVi14FSuYJ9fg=";
  };

  nativeBuildInputs = [
    flit-core
  ];

  propagatedBuildInputs = [
    fire
    tqdm
    intelhex
    libusb1
  ];

  # no tests
  doCheck = false;

  pythonImportsCheck = [ "nkdfu" ];

  meta = with lib; {
    description = "Python tool for Nitrokeys' firmware update";
    mainProgram = "nkdfu";
    homepage = "https://github.com/Nitrokey/nkdfu";
    license = with licenses; [ gpl2Only ];
    maintainers = with maintainers; [ frogamic ];
  };
}