about summary refs log tree commit diff
path: root/pkgs/development/python-modules/starlette-wtf/default.nix
blob: bacbbb0a1c59ddc6994971c72b193a4b35a20b47 (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
43
44
45
46
47
48
49
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, itsdangerous
, python-multipart
, starlette
, wtforms
, httpx
, jinja2
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "starlette-wtf";
  version = "0.4.5";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "muicss";
    repo = "starlette-wtf";
    rev = "refs/tags/${version}";
    hash = "sha256-88zU2NAsdty2OhHauwQ5+6LazuRDYPoqN9IIipI1t2Q=";
  };

  nativeBuildInputs = [
    setuptools
  ];
  propagatedBuildInputs = [
    itsdangerous
    python-multipart
    starlette
    wtforms
  ];

  nativeCheckInputs = [
    pytestCheckHook
    httpx
    jinja2
  ];

  meta = with lib; {
    description = "A simple tool for integrating Starlette and WTForms";
    changelog = "https://github.com/muicss/starlette-wtf/blob/v${version}/CHANGELOG.md";
    homepage = "https://github.com/muicss/starlette-wtf";
    license = licenses.mit;
    maintainers = teams.wdz.members;
  };
}