summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tiptapy/default.nix
blob: fadb4b44b03a978ee766ee911a6fcc8ec2ff271f (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  jinja2,
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "tiptapy";
  # github repository does not have version tags
  version = "0.20.0-unstable-2024-06-14";

  pyproject = true;

  src = fetchFromGitHub {
    owner = "stckme";
    repo = "tiptapy";
    rev = "f34ed358b1b3448721b791150f4f104347a416bf";
    hash = "sha256-y43/901tznZ9N9A4wH3z8FW0mHzNrA8pC+0d1CxdqJM=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [ jinja2 ];
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "tiptapy" ];

  meta = {
    description = "Library that generates HTML output from JSON export of tiptap editor";
    homepage = "https://github.com/stckme/tiptapy";
    changelog = "https://github.com/stckme/tiptapy/blob/master/CHANGELOG.rst";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      DutchGerman
      friedow
    ];
  };
}