2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
47 lines
979 B
Nix
47 lines
979 B
Nix
{ 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;
|
|
};
|
|
}
|