about summary refs log tree commit diff
path: root/pkgs/development/python-modules/rich-theme-manager/default.nix
blob: f465b77b6ef6d2a6eaaa101409363eeecef5abe4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  rich,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "rich-theme-manager";
  version = "0.11.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "RhetTbull";
    repo = "rich_theme_manager";
    rev = "refs/tags/v${version}";
    hash = "sha256-nSNG+lWOPmh66I9EmPvWqbeceY/cu+zBpgVlDTNuHc0=";
  };

  build-system = [ poetry-core ];
  dependencies = [ rich ];

  pythonImportsCheck = [ "rich_theme_manager" ];
  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Define custom styles and themes for use with rich";
    license = lib.licenses.mit;
    homepage = "https://github.com/RhetTbull/rich_theme_manager";
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
}