python312Packages.comicon: 1.2.0 -> 1.2.1 (#361860)
[NixPkgs.git] / pkgs / development / python-modules / wtforms / default.nix
blobfc509b20132bd5b1ff8bf2a470f15ad6c7a1e3ab
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
7   # build-system
8   babel,
9   hatchling,
10   setuptools,
12   # dependencies
13   markupsafe,
15   # optional-dependencies
16   email-validator,
18   # tests
19   pytestCheckHook,
22 buildPythonPackage rec {
23   pname = "wtforms";
24   version = "3.2.1";
25   pyproject = true;
27   disabled = pythonOlder "3.7";
29   src = fetchFromGitHub {
30     owner = "wtforms";
31     repo = "wtforms";
32     rev = "refs/tags/${version}";
33     hash = "sha256-jwjP/wkk8MdNJbPE8MlkrH4DyR304Ju41nN4lMo3jFs=";
34   };
36   nativeBuildInputs = [
37     babel
38     hatchling
39     setuptools
40   ];
42   propagatedBuildInputs = [ markupsafe ];
44   optional-dependencies = {
45     email = [ email-validator ];
46   };
48   nativeCheckInputs = [
49     pytestCheckHook
50   ] ++ lib.flatten (lib.attrValues optional-dependencies);
52   pythonImportsCheck = [ "wtforms" ];
54   meta = with lib; {
55     description = "Flexible forms validation and rendering library for Python";
56     homepage = "https://github.com/wtforms/wtforms";
57     changelog = "https://github.com/wtforms/wtforms/blob/${version}/CHANGES.rst";
58     license = licenses.bsd3;
59     maintainers = with maintainers; [ bhipple ];
60   };