nixpkgs/pkgs/development/python-modules/ansimarkup/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
772 B
Nix
Raw Permalink Normal View History

{
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 ];
};
}