2022-01-27 00:19:43 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fire, tqdm, intelhex, libusb1 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nkdfu";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.2";
|
2022-01-27 00:19:43 +00:00
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-8l913dOCxHKFtpQ83p9RV3sUlu0oT5PVi14FSuYJ9fg=";
|
2022-01-27 00:19:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fire
|
|
|
|
tqdm
|
|
|
|
intelhex
|
|
|
|
libusb1
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "nkdfu" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python tool for Nitrokeys' firmware update";
|
|
|
|
homepage = "https://github.com/Nitrokey/nkdfu";
|
|
|
|
license = with licenses; [ gpl2Only ];
|
|
|
|
maintainers = with maintainers; [ frogamic ];
|
|
|
|
};
|
|
|
|
}
|