Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / nkdfu / default.nix
blob28274467efb9e66ff93f9cfa0d39d032decbf48d
1 { lib, buildPythonPackage, fetchPypi, flit-core, fire, tqdm, intelhex, libusb1 }:
3 buildPythonPackage rec {
4   pname = "nkdfu";
5   version = "0.2";
6   format = "pyproject";
8   src = fetchPypi {
9     inherit pname version;
10     hash = "sha256-8l913dOCxHKFtpQ83p9RV3sUlu0oT5PVi14FSuYJ9fg=";
11   };
13   nativeBuildInputs = [
14     flit-core
15   ];
17   propagatedBuildInputs = [
18     fire
19     tqdm
20     intelhex
21     libusb1
22   ];
24   # no tests
25   doCheck = false;
27   pythonImportsCheck = [ "nkdfu" ];
29   meta = with lib; {
30     description = "Python tool for Nitrokeys' firmware update";
31     mainProgram = "nkdfu";
32     homepage = "https://github.com/Nitrokey/nkdfu";
33     license = with licenses; [ gpl2Only ];
34     maintainers = with maintainers; [ frogamic ];
35   };