depot/third_party/nixpkgs/pkgs/development/python-modules/ansimarkup/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

36 lines
772 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
colorama,
}:
buildPythonPackage rec {
pname = "ansimarkup";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "gvalkov";
repo = "python-ansimarkup";
rev = "refs/tags/v${version}";
hash = "sha256-+kZt8tv09RHrMRZtvJPBBiFaeCksXyrlHqIabPrXYDY=";
};
build-system = [ setuptools ];
dependencies = [ colorama ];
nativeCheckInputs = [ pytestCheckHook ];
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 ];
};
}