9 hatch-fancy-pypi-readme,
30 buildPythonPackage rec {
35 disabled = pythonOlder "3.8";
37 src = fetchFromGitHub {
41 hash = "sha256-/QxWgViqVmPnX/sO+qkvGl+WQX3OPXpS44CdP2HHOis=";
44 buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ];
47 hatch-fancy-pypi-readme
57 optional-dependencies = {
58 email = [ email-validator ];
70 ++ lib.flatten (lib.attrValues optional-dependencies)
71 ++ lib.optionals (pythonOlder "3.10") [ eval-type-backport ];
74 export HOME=$(mktemp -d)
75 substituteInPlace pyproject.toml \
76 --replace-fail "'--benchmark-columns', 'min,mean,stddev,outliers,rounds,iterations'," "" \
77 --replace-fail "'--benchmark-group-by', 'group'," "" \
78 --replace-fail "'--benchmark-warmup', 'on'," "" \
79 --replace-fail "'--benchmark-disable'," ""
83 # suppress warnings with pytest>=8
84 "-Wignore::pydantic.warnings.PydanticDeprecatedSince20"
85 "-Wignore::pydantic.json_schema.PydanticJsonSchemaWarning"
89 # disable failing test with pytest>=8
90 "test_assert_raises_validation_error"
96 # avoid cyclic dependency
100 pythonImportsCheck = [ "pydantic" ];
103 description = "Data validation and settings management using Python type hinting";
104 homepage = "https://github.com/pydantic/pydantic";
105 changelog = "https://github.com/pydantic/pydantic/blob/v${version}/HISTORY.md";
106 license = licenses.mit;
107 maintainers = with maintainers; [ wd15 ];