nixpkgs/pkgs/development/python-modules/colout/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

48 lines
851 B
Nix

{ lib
, babel
, buildPythonPackage
, fetchFromGitHub
, pygments
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "colout";
version = "1.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nojhan";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
babel
pygments
];
pythonImportsCheck = [
"colout"
];
# This project does not have a unit test
doCheck = false;
meta = with lib; {
description = "Color Up Arbitrary Command Output";
mainProgram = "colout";
homepage = "https://github.com/nojhan/colout";
license = licenses.gpl3Only;
maintainers = with maintainers; [ badele ];
};
}