1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, poetry-dynamic-versioning 6, pygments 7, rich 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "catppuccin"; 13 version = "1.3.2"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "catppuccin"; 18 repo = "python"; 19 rev = "v${version}"; 20 hash = "sha256-spPZdQ+x3isyeBXZ/J2QE6zNhyHRfyRQGiHreuXzzik="; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 poetry-dynamic-versioning 26 ]; 27 28 passthru.optional-dependencies = { 29 pygments = [ pygments ]; 30 rich = [ rich ]; 31 }; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 disabledTestPaths = [ 36 "tests/test_flavour.py" # would download a json to check correctness of flavours 37 ]; 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; [ fufexan tomasajt ]; 45 license = lib.licenses.mit; 46 }; 47}