17 buildPythonPackage rec {
22 disabled = pythonOlder "3.7";
24 src = fetchFromGitHub {
27 rev = "refs/tags/v${version}";
28 hash = "sha256-dn/ZsxbkyK2sJxpo6IsoMBRjq1STdu+xuqHXoNG+Kzk=";
36 buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ];
38 propagatedBuildInputs = [ typing-extensions ];
40 optional-dependencies = {
41 dotenv = [ python-dotenv ];
42 email = [ email-validator ];
48 ] ++ lib.flatten (lib.attrValues optional-dependencies);
51 # https://github.com/pydantic/pydantic/issues/4817
53 "ignore::pytest.PytestReturnNotNoneWarning"
57 export HOME=$(mktemp -d)
60 disabledTests = lib.optionals (pythonAtLeast "3.12") [
62 "test_cython_function_untouched"
63 # AssertionError on exact types and wording
64 "test_model_subclassing_abstract_base_classes_without_implementation_raises_exception"
65 "test_partial_specification_name"
69 enableParallelBuilding = true;
71 pythonImportsCheck = [ "pydantic" ];
74 description = "Data validation and settings management using Python type hinting";
75 homepage = "https://github.com/pydantic/pydantic";
76 changelog = "https://github.com/pydantic/pydantic/blob/v${version}/HISTORY.md";
77 license = licenses.mit;
78 maintainers = with maintainers; [ wd15 ];