about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/wtforms-bootstrap5/default.nix
blob: 0150dcb2d72aeb2eb6849d87783eca0c8eb3ff57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib
, buildPythonPackage
, fetchFromGitHub
, wtforms
, poetry-core
, pytestCheckHook
, lxml
}:

buildPythonPackage rec {
  pname = "wtforms-bootstrap5";
  version = "0.3.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "LaunchPlatform";
    repo = "wtforms-bootstrap5";
    rev = version;
    hash = "sha256-TJJ3KOeC9JXnxK0YpnfeBNq1KHwaAZ4+t9CXbc+85Ro=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    wtforms
  ];

  nativeCheckInputs = [
    pytestCheckHook
    lxml
  ];

  meta = with lib; {
    description = "Simple library for rendering WTForms in HTML as Bootstrap 5 form controls";
    homepage = "https://github.com/LaunchPlatform/wtforms-bootstrap5";
    changelog = "https://github.com/LaunchPlatform/wtforms-bootstrap5/releases/tag/${version}";
    license = licenses.mit;
    maintainers = teams.wdz.members;
  };
}