2022-01-23 14:52:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-25 17:37:33 +00:00
|
|
|
setuptools,
|
2022-01-23 14:52:46 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
colorama,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansimarkup";
|
2024-07-25 17:37:33 +00:00
|
|
|
version = "2.1.0";
|
|
|
|
pyproject = true;
|
2022-01-23 14:52:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gvalkov";
|
|
|
|
repo = "python-ansimarkup";
|
2024-07-25 17:37:33 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-+kZt8tv09RHrMRZtvJPBBiFaeCksXyrlHqIabPrXYDY=";
|
2022-01-23 14:52:46 +00:00
|
|
|
};
|
|
|
|
|
2024-07-25 17:37:33 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ colorama ];
|
2022-01-23 14:52:46 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|