diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2022-01-24 01:20:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 01:20:05 +0100 |
commit | 3be254cfb174c413b2bc56dddb8a22dd8d743fc2 (patch) | |
tree | 91482f238764bb65144054492712eb3fc0c2e716 /pkgs | |
parent | 6050831fbb48ec350f30dcb6db22176de1492e2f (diff) | |
parent | 6833cd17bd87f22be92af972e34039154ebe204a (diff) |
Merge pull request #156324 from cpcloud/nixpkgs-ansimarkup
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/ansimarkup/default.nix | 31 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ansimarkup/default.nix b/pkgs/development/python-modules/ansimarkup/default.nix new file mode 100644 index 0000000000000..b74c7e3217990 --- /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 25a6366555f41..1c9f6fc733f3e 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 { |