nixpkgs/pkgs/development/python-modules/simple-term-menu/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

36 lines
861 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools
}:
buildPythonPackage rec {
pname = "simple-term-menu";
version = "1.6.4";
pyproject = true;
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-vpxdvY3xKkBLFM2Oldb8AtWMYOJVX2Xd3kF3fEh/s7k=";
};
nativeBuildInputs = [ setuptools ];
pythonImportsCheck = [ "simple_term_menu" ];
# no unit tests in the upstream
doCheck = false;
meta = with lib; {
description = "A Python package which creates simple interactive menus on the command line";
mainProgram = "simple-term-menu";
homepage = "https://github.com/IngoMeyer441/simple-term-menu";
license = licenses.mit;
changelog = "https://github.com/IngoMeyer441/simple-term-menu/releases/tag/v${version}";
maintainers = with maintainers; [ smrehman ];
};
}