depot/third_party/nixpkgs/pkgs/development/python-modules/catppuccin/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

50 lines
988 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
poetry-dynamic-versioning,
matplotlib,
pygments,
rich,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "catppuccin";
version = "2.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "catppuccin";
repo = "python";
rev = "refs/tags/v${version}";
hash = "sha256-1CPNs+n9S7fV+EvhFWBwnv6/N3UWQ/jiyRcn4XKzmd8=";
};
build-system = [
poetry-core
poetry-dynamic-versioning
];
optional-dependencies = {
matplotlib = [ matplotlib ];
pygments = [ pygments ];
rich = [ rich ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
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;
};
}