1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 pythonOlder,
6 pytestCheckHook,
7 jinja2,
8 multidict,
9 poetry-core,
10 pydantic,
11 pyyaml,
12 wtforms,
13}:
14
15buildPythonPackage rec {
16 pname = "beanhub-forms";
17 version = "0.1.3";
18 pyproject = true;
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchFromGitHub {
23 owner = "LaunchPlatform";
24 repo = "beanhub-forms";
25 tag = version;
26 hash = "sha256-313c+ENmTe1LyfEiMXNB9AUoGx3Yv/1D0T3HnAbd+Zw=";
27 };
28
29 build-system = [ poetry-core ];
30
31 dependencies = [
32 jinja2
33 pydantic
34 pyyaml
35 wtforms
36 ];
37
38 nativeCheckInputs = [
39 multidict
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "beanhub_forms" ];
44
45 meta = {
46 description = "Library for generating and processing BeanHub's custom forms";
47 homepage = "https://github.com/LaunchPlatform/beanhub-forms/";
48 changelog = "https://github.com/LaunchPlatform/beanhub-forms/releases/tag/${version}";
49 license = with lib.licenses; [ mit ];
50 maintainers = with lib.maintainers; [ fangpen ];
51 };
52}