1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 poetry-dynamic-versioning, 7 matplotlib, 8 pygments, 9 rich, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "catppuccin"; 15 version = "2.3.4"; 16 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "catppuccin"; 21 repo = "python"; 22 tag = "v${version}"; 23 hash = "sha256-0+sbf2m0vJCf6EOl6DMqgtL35RJh+rehi/p0ylTPJK8="; 24 }; 25 26 build-system = [ 27 poetry-core 28 poetry-dynamic-versioning 29 ]; 30 31 optional-dependencies = { 32 matplotlib = [ matplotlib ]; 33 pygments = [ pygments ]; 34 rich = [ rich ]; 35 }; 36 37 nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); 38 39 pythonImportsCheck = [ "catppuccin" ]; 40 41 meta = { 42 description = "Soothing pastel theme for Python"; 43 homepage = "https://github.com/catppuccin/python"; 44 maintainers = with lib.maintainers; [ 45 fufexan 46 tomasajt 47 ]; 48 license = lib.licenses.mit; 49 }; 50}