summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/touying/default.nix
blob: 1d982dda4c06e8936fc07aab4beaa9bc00e7c6d4 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  jinja2,
  pillow,
  python-pptx,
  typst,
}:

buildPythonPackage rec {
  pname = "touying";
  version = "0.14.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "touying-typ";
    repo = "touying-exporter";
    tag = version;
    hash = "sha256-3e5LWI3ysklTj9WY0PF4+7spEARZYel/aS1R+elfMp0=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    jinja2
    pillow
    python-pptx
    typst
  ];

  pythonImportsCheck = [ "touying" ];

  # no tests
  doCheck = false;

  meta = {
    description = "Export presentation slides in various formats for Touying";
    changelog = "https://github.com/touying-typ/touying-exporter/releases/tag/${version}";
    homepage = "https://github.com/touying-typ/touying-exporter";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ GaetanLepage ];
    mainProgram = "touying";
  };
}