Files
nixpkgs/pkgs/development/python-modules/colout/default.nix
2023-05-05 22:36:41 +02:00

46 lines
822 B
Nix

{ lib
, babel
, buildPythonPackage
, fetchFromGitHub
, pygments
, python3Packages
, setuptools-scm
}:
buildPythonPackage rec {
pname = "colout";
version = "0.12.0";
src = fetchFromGitHub {
owner = "nojhan";
repo = pname;
rev = "v${version}";
sha256 = "sha256-5ETKNo3KfncnnLTClA6BnQA7SN5KwwsLdQoozI9li7I=";
};
nativeBuildInputs = [
babel
pygments
setuptools-scm
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
propagatedBuildInputs = [
babel
pygments
];
pythonImportsCheck = [ "colout" ];
# This project does not have a unit test
doCheck = false;
meta = with lib; {
description = "Color Up Arbitrary Command Output";
homepage = "https://github.com/nojhan/colout";
license = licenses.gpl3;
maintainers = with maintainers; [ badele ];
};
}