2022-01-23 14:52:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
colorama,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansimarkup";
|
|
|
|
version = "1.5.0";
|
2023-12-07 03:53:02 +00:00
|
|
|
format = "setuptools";
|
2022-01-23 14:52:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gvalkov";
|
|
|
|
repo = "python-ansimarkup";
|
|
|
|
rev = "v${version}";
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-HGeVapv2Z5GtPwSp3+dvUwAH0bFqu+Bmk5E6SRr7NO4=";
|
2022-01-23 14:52:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ colorama ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-01-23 14:52:46 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "ansimarkup" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "XML-like markup for producing colored terminal text";
|
|
|
|
homepage = "https://github.com/gvalkov/python-ansimarkup";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
|
|
};
|
|
|
|
}
|