depot/third_party/nixpkgs/pkgs/development/python-modules/nkdfu/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

35 lines
718 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";
homepage = "https://github.com/Nitrokey/nkdfu";
license = with licenses; [ gpl2Only ];
maintainers = with maintainers; [ frogamic ];
};
}