Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, wcwidth 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "beautifultable"; 11 version = "1.1.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "pri22296"; 18 repo = pname; 19 rev = "v${version}"; 20 hash = "sha256-/SReCEvSwiNjBoz/3tGJ9zUNBAag4mLsHlUXwm47zCw="; 21 }; 22 23 propagatedBuildInputs = [ 24 wcwidth 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pytestFlagsArray = [ 32 "test.py" 33 ]; 34 35 pythonImportsCheck = [ 36 "beautifultable" 37 ]; 38 39 meta = with lib; { 40 description = "Python package for printing visually appealing tables"; 41 homepage = "https://github.com/pri22296/beautifultable"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}