2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-31 10:19:44 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
colorama,
|
2022-01-25 03:21:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansimarkup";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "2.1.0";
|
|
|
|
pyproject = true;
|
2022-01-25 03:21:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gvalkov";
|
|
|
|
repo = "python-ansimarkup";
|
2024-07-31 10:19:44 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-+kZt8tv09RHrMRZtvJPBBiFaeCksXyrlHqIabPrXYDY=";
|
2022-01-25 03:21:06 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ colorama ];
|
2022-01-25 03:21:06 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-01-25 03:21:06 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "ansimarkup" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "XML-like markup for producing colored terminal text";
|
2022-01-25 03:21:06 +00:00
|
|
|
homepage = "https://github.com/gvalkov/python-ansimarkup";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
|
|
};
|
|
|
|
}
|