Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools, 7 colored, 8 pytestCheckHook, 9 numpy, 10}: 11 12buildPythonPackage rec { 13 pname = "ansitable"; 14 version = "0.10.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-ehPPpZ9C/Nrly9WoJJfZtv2YfZ9MEcQsKtuxNpcJe7U="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ colored ]; 27 28 pythonImportsCheck = [ "ansitable" ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 numpy 33 ]; 34 35 meta = with lib; { 36 description = "Quick and easy display of tabular data and matrices with optional ANSI color and borders"; 37 homepage = "https://pypi.org/project/ansitable/"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ 40 djacu 41 a-camarillo 42 ]; 43 }; 44}