snac2: 2.68 -> 2.70 (#379043)
[NixPkgs.git] / pkgs / development / python-modules / ansimarkup / default.nix
blobfedb0b060e07368080e9942c6e820ad44cfb08c8
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   pytestCheckHook,
7   colorama,
8 }:
10 buildPythonPackage rec {
11   pname = "ansimarkup";
12   version = "2.1.0";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "gvalkov";
17     repo = "python-ansimarkup";
18     tag = "v${version}";
19     hash = "sha256-+kZt8tv09RHrMRZtvJPBBiFaeCksXyrlHqIabPrXYDY=";
20   };
22   build-system = [ setuptools ];
24   dependencies = [ colorama ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "ansimarkup" ];
30   meta = with lib; {
31     description = "XML-like markup for producing colored terminal text";
32     homepage = "https://github.com/gvalkov/python-ansimarkup";
33     license = licenses.bsd3;
34     maintainers = with maintainers; [ cpcloud ];
35   };