Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / wtforms / default.nix
blob9bb47be4a27a1f3e98bff154c990a6a2c5223e20
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
6 # build-system
7 , babel
8 , hatchling
9 , setuptools
11 # dependencies
12 , markupsafe
14 # optional-dependencies
15 , email-validator
17 # tests
18 , pytestCheckHook
21 buildPythonPackage rec {
22   pname = "wtforms";
23   version = "3.1.2";
24   pyproject = true;
26   disabled = pythonOlder "3.7";
28   src = fetchFromGitHub {
29     owner = "wtforms";
30     repo = "wtforms";
31     rev = "refs/tags/${version}";
32     hash = "sha256-L6DmB7iVpJR775oRxuEkCKWlUJnmw8VPZTr2dZbqeEc=";
33   };
35   nativeBuildInputs = [
36     babel
37     hatchling
38     setuptools
39   ];
41   propagatedBuildInputs = [
42     markupsafe
43   ];
45   passthru.optional-dependencies = {
46     email = [
47       email-validator
48     ];
49   };
51   nativeCheckInputs = [
52     pytestCheckHook
53   ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
55   pythonImportsCheck = [
56     "wtforms"
57   ];
59   meta = with lib; {
60     description = "A flexible forms validation and rendering library for Python";
61     homepage = "https://github.com/wtforms/wtforms";
62     changelog = "https://github.com/wtforms/wtforms/blob/${version}/CHANGES.rst";
63     license = licenses.bsd3;
64     maintainers = with maintainers; [ bhipple ];
65   };