2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
poetry-dynamic-versioning,
|
|
|
|
pygments,
|
|
|
|
rich,
|
|
|
|
pytestCheckHook,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "catppuccin";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.2.0";
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "catppuccin";
|
|
|
|
repo = "python";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-+V1rln3FlFvs1FEIANIch7k/b2EsI9xBxhg3Bwg99+I=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2023-11-16 04:20:00 +00:00
|
|
|
poetry-core
|
|
|
|
poetry-dynamic-versioning
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
optional-dependencies = {
|
2023-11-16 04:20:00 +00:00
|
|
|
pygments = [ pygments ];
|
|
|
|
rich = [ rich ];
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "catppuccin" ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
meta = {
|
2023-01-20 10:41:00 +00:00
|
|
|
description = "Soothing pastel theme for Python";
|
|
|
|
homepage = "https://github.com/catppuccin/python";
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
fufexan
|
|
|
|
tomasajt
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
license = lib.licenses.mit;
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|