diff --git a/pkgs/development/python-modules/ansimarkup/default.nix b/pkgs/development/python-modules/ansimarkup/default.nix new file mode 100644 index 000000000000..b74c7e321799 --- /dev/null +++ b/pkgs/development/python-modules/ansimarkup/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, colorama +}: + +buildPythonPackage rec { + pname = "ansimarkup"; + version = "1.5.0"; + + src = fetchFromGitHub { + owner = "gvalkov"; + repo = "python-ansimarkup"; + rev = "v${version}"; + sha256 = "sha256-HGeVapv2Z5GtPwSp3+dvUwAH0bFqu+Bmk5E6SRr7NO4="; + }; + + propagatedBuildInputs = [ colorama ]; + + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "ansimarkup" ]; + + meta = with lib; { + description = "An XML-like markup for producing colored terminal text."; + homepage = "https://github.com/gvalkov/python-ansimarkup"; + license = licenses.bsd3; + maintainers = with maintainers; [ cpcloud ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ee0f264dc294..46281f94ffcf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -520,6 +520,8 @@ in { ansiconv = callPackage ../development/python-modules/ansiconv { }; + ansimarkup = callPackage ../development/python-modules/ansimarkup { }; + ansiwrap = callPackage ../development/python-modules/ansiwrap { }; antlr4-python3-runtime = callPackage ../development/python-modules/antlr4-python3-runtime {