1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pythonOlder,
7 reflex,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "reflex-chakra";
13 version = "0.7.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchFromGitHub {
19 owner = "reflex-dev";
20 repo = "reflex-chakra";
21 tag = "v${version}";
22 hash = "sha256-dAenwsFhRj9BzdGyaC38TwBWog95H0mSA0ullt4otHA=";
23 };
24
25 build-system = [ hatchling ];
26
27 dependencies = [ reflex ];
28
29 pythonImportsCheck = [ "reflex_chakra" ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 # there are no "test_*.py" files, and the
34 # other files with `test_*` functions are not maintained it seems
35 doCheck = false;
36
37 meta = {
38 description = "Chakra Implementation in Reflex";
39 homepage = "https://github.com/reflex-dev/reflex-chakra";
40 changelog = "https://github.com/reflex-dev/reflex-chakra/releases/tag/${src.tag}";
41 license = lib.licenses.asl20;
42 maintainers = with lib.maintainers; [ fab ];
43 };
44}