2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, poetry-dynamic-versioning
|
2023-01-20 10:41:00 +00:00
|
|
|
, pygments
|
2023-11-16 04:20:00 +00:00
|
|
|
, rich
|
|
|
|
, pytestCheckHook
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "catppuccin";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.3.2";
|
|
|
|
pyproject = true;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "catppuccin";
|
|
|
|
repo = "python";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-spPZdQ+x3isyeBXZ/J2QE6zNhyHRfyRQGiHreuXzzik=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
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
|
|
|
|
];
|
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";
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with lib.maintainers; [ fufexan tomasajt ];
|
|
|
|
license = lib.licenses.mit;
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
}
|