1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "print-color"; 12 version = "0.4.6"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "xy3"; 19 repo = "print-color"; 20 tag = "v${version}"; 21 hash = "sha256-PHPbzzWG7smEsoTFYFT2tgXfCxUYjevpB9rxG2bZVy4="; 22 }; 23 24 build-system = [ poetry-core ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "print_color" ]; 29 30 meta = with lib; { 31 description = "Module to print color messages in the terminal"; 32 homepage = "https://github.com/xy3/print-color"; 33 changelog = "https://github.com/xy3/print-color/releases/tag/v${version}"; 34 license = with licenses; [ 35 asl20 36 mit 37 ]; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}