Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / catppuccin / default.nix
blob3c86e97f49f975a8a5c59928b4893cd90c0e2351
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , poetry-dynamic-versioning
6 , pygments
7 , rich
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "catppuccin";
13   version = "1.3.2";
14   pyproject = true;
16   src = fetchFromGitHub {
17     owner = "catppuccin";
18     repo = "python";
19     rev = "v${version}";
20     hash = "sha256-spPZdQ+x3isyeBXZ/J2QE6zNhyHRfyRQGiHreuXzzik=";
21   };
23   nativeBuildInputs = [
24     poetry-core
25     poetry-dynamic-versioning
26   ];
28   passthru.optional-dependencies = {
29     pygments = [ pygments ];
30     rich = [ rich ];
31   };
33   nativeCheckInputs = [ pytestCheckHook ];
35   disabledTestPaths = [
36     "tests/test_flavour.py" # would download a json to check correctness of flavours
37   ];
39   pythonImportsCheck = [ "catppuccin" ];
41   meta = {
42     description = "Soothing pastel theme for Python";
43     homepage = "https://github.com/catppuccin/python";
44     maintainers = with lib.maintainers; [ fufexan tomasajt ];
45     license = lib.licenses.mit;
46   };