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