Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / nkdfu / default.nix
blob35d6fa16e1d357ea0179c3488c86557d80ac1c5f
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     homepage = "https://github.com/Nitrokey/nkdfu";
32     license = with licenses; [ gpl2Only ];
33     maintainers = with maintainers; [ frogamic ];
34   };