1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 jinja2,
7 pytestCheckHook,
8}:
9
10buildPythonPackage {
11 pname = "tiptapy";
12 # github repository does not have version tags
13 version = "0.20.0-unstable-2024-06-14";
14
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "stckme";
19 repo = "tiptapy";
20 rev = "f34ed358b1b3448721b791150f4f104347a416bf";
21 hash = "sha256-y43/901tznZ9N9A4wH3z8FW0mHzNrA8pC+0d1CxdqJM=";
22 };
23
24 build-system = [
25 setuptools
26 ];
27
28 dependencies = [ jinja2 ];
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "tiptapy" ];
34
35 meta = {
36 description = "Library that generates HTML output from JSON export of tiptap editor";
37 homepage = "https://github.com/stckme/tiptapy";
38 changelog = "https://github.com/stckme/tiptapy/blob/master/CHANGELOG.rst";
39 license = lib.licenses.mit;
40 teams = [ lib.teams.apm ];
41 };
42}