depot/third_party/nixpkgs/pkgs/development/python-modules/nkdfu/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
756 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
fire,
tqdm,
intelhex,
libusb1,
}:
buildPythonPackage rec {
pname = "nkdfu";
version = "0.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-8l913dOCxHKFtpQ83p9RV3sUlu0oT5PVi14FSuYJ9fg=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
fire
tqdm
intelhex
libusb1
];
# no tests
doCheck = false;
pythonImportsCheck = [ "nkdfu" ];
meta = with lib; {
description = "Python tool for Nitrokeys' firmware update";
mainProgram = "nkdfu";
homepage = "https://github.com/Nitrokey/nkdfu";
license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ frogamic ];
};
}