2023-10-09 19:29:22 +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
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|