1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pythonOlder,
7 reflex,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "reflex-chakra";
13 version = "0.7.0";
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-foIXPLWcxNf33y39BgiRpvwRnZOTcfAjhCvC4TD8ZMs=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 reflex
29 ];
30
31 pythonImportsCheck = [ "reflex_chakra" ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 # there are no "test_*.py" files, and the
36 # other files with `test_*` functions are not maintained it seems
37 doCheck = false;
38
39 meta = {
40 description = "Chakra Implementation in Reflex";
41 homepage = "https://github.com/reflex-dev/reflex-chakra";
42 changelog = "https://github.com/reflex-dev/reflex-chakra/releases/tag/${src.tag}";
43 license = lib.licenses.asl20;
44 maintainers = with lib.maintainers; [ fab ];
45 };
46}