depot/third_party/nixpkgs/pkgs/development/python-modules/catppuccin/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

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;
};
}