Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 colorama, 7}: 8 9buildPythonPackage rec { 10 pname = "ansimarkup"; 11 version = "1.5.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "gvalkov"; 16 repo = "python-ansimarkup"; 17 rev = "v${version}"; 18 hash = "sha256-HGeVapv2Z5GtPwSp3+dvUwAH0bFqu+Bmk5E6SRr7NO4="; 19 }; 20 21 propagatedBuildInputs = [ colorama ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "ansimarkup" ]; 26 27 meta = with lib; { 28 description = "XML-like markup for producing colored terminal text"; 29 homepage = "https://github.com/gvalkov/python-ansimarkup"; 30 license = licenses.bsd3; 31 maintainers = with maintainers; [ cpcloud ]; 32 }; 33}