diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/catppuccin')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/catppuccin/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/catppuccin/default.nix b/nixpkgs/pkgs/development/python-modules/catppuccin/default.nix new file mode 100644 index 000000000000..3c86e97f49f9 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/catppuccin/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, poetry-dynamic-versioning +, pygments +, rich +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "catppuccin"; + version = "1.3.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "catppuccin"; + repo = "python"; + rev = "v${version}"; + hash = "sha256-spPZdQ+x3isyeBXZ/J2QE6zNhyHRfyRQGiHreuXzzik="; + }; + + nativeBuildInputs = [ + poetry-core + poetry-dynamic-versioning + ]; + + passthru.optional-dependencies = { + pygments = [ pygments ]; + rich = [ rich ]; + }; + + nativeCheckInputs = [ pytestCheckHook ]; + + disabledTestPaths = [ + "tests/test_flavour.py" # would download a json to check correctness of flavours + ]; + + pythonImportsCheck = [ "catppuccin" ]; + + meta = { + description = "Soothing pastel theme for Python"; + homepage = "https://github.com/catppuccin/python"; + maintainers = with lib.maintainers; [ fufexan tomasajt ]; + license = lib.licenses.mit; + }; +} |