nixpkgs/pkgs/development/python-modules/nkdfu/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

37 lines
745 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 ];
};
}