2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
flit-core,
|
|
|
|
fire,
|
|
|
|
tqdm,
|
|
|
|
intelhex,
|
|
|
|
libusb1,
|
|
|
|
}:
|
2022-01-27 00:19:43 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nkdfu";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.2";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2022-01-27 00:19:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-8l913dOCxHKFtpQ83p9RV3sUlu0oT5PVi14FSuYJ9fg=";
|
2022-01-27 00:19:43 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nkdfu";
|
2022-01-27 00:19:43 +00:00
|
|
|
homepage = "https://github.com/Nitrokey/nkdfu";
|
|
|
|
license = with licenses; [ gpl2Only ];
|
|
|
|
maintainers = with maintainers; [ frogamic ];
|
|
|
|
};
|
|
|
|
}
|