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

44 lines
848 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 ];
};
}