python311Packages.pydantic 0 -> 1 attrpath: python311Packages.pydantic Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/lk74vj2ry01k91xh0idpp7qn43b43587-packages.json.drv building '/nix/store/lk74vj2ry01k91xh0idpp7qn43b43587-packages.json.drv'... Going to be running update for following packages: - python3.11-pydantic-2.5.3 Press Enter key to continue... Running update for: - python3.11-pydantic-2.5.3: UPDATING ... - python3.11-pydantic-2.5.3: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index c81b46a20586..65a24eaf501a 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -26,7 +26,7 @@ buildPythonPackage rec { pname = "pydantic"; - version = "2.5.3"; + version = "2.6.4"; pyproject = true; disabled = pythonOlder "3.7"; @@ -35,7 +35,7 @@ buildPythonPackage rec { owner = "pydantic"; repo = "pydantic"; rev = "refs/tags/v${version}"; - hash = "sha256-YTNV67uKGRag6ICkNjjY9YrOiKFB1hSZkKcUXjSrhwM="; + hash = "sha256-z4m1Rsv5H3mI94o0LLd2xSwhPK35WgMYfuUBNPrtAMk="; }; buildInputs = lib.optionals (pythonOlder "3.9") [ No auto update branch exists Old version 2.5.3" not present in staging derivation file with contents: { lib , buildPythonPackage , fetchFromGitHub , fetchpatch , pythonOlder # build-system , hatchling , hatch-fancy-pypi-readme # native dependencies , libxcrypt # dependencies , annotated-types , pydantic-core , typing-extensions # tests , cloudpickle , email-validator , dirty-equals , faker , pytestCheckHook , pytest-mock }: buildPythonPackage rec { pname = "pydantic"; version = "2.6.3"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "pydantic"; repo = "pydantic"; rev = "refs/tags/v${version}"; hash = "sha256-neTdG/IcXopCmevzFY5/XDlhPHmOb6dhyAnzaobmeG8="; }; patches = [ (fetchpatch { # https://github.com/pydantic/pydantic/pull/8678 name = "fix-pytest8-compatibility.patch"; url = "https://github.com/pydantic/pydantic/commit/825a6920e177a3b65836c13c7f37d82b810ce482.patch"; hash = "sha256-Dap5DtDzHw0jS/QUo5CRI9sLDJ719GRyC4ZNDWEdzus="; }) ]; buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ]; build-system = [ hatch-fancy-pypi-readme hatchling ]; dependencies = [ annotated-types pydantic-core typing-extensions ]; passthru.optional-dependencies = { email = [ email-validator ]; }; nativeCheckInputs = [ cloudpickle dirty-equals faker pytest-mock pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); preCheck = '' export HOME=$(mktemp -d) substituteInPlace pyproject.toml \ --replace "'--benchmark-columns', 'min,mean,stddev,outliers,rounds,iterations'," "" \ --replace "'--benchmark-group-by', 'group'," "" \ --replace "'--benchmark-warmup', 'on'," "" \ --replace "'--benchmark-disable'," "" ''; pytestFlagsArray = [ # suppress warnings with pytest>=8 "-Wignore::pydantic.warnings.PydanticDeprecatedSince20" "-Wignore::pydantic.json_schema.PydanticJsonSchemaWarning" ]; disabledTests = [ # disable failing test with pytest>=8 "test_assert_raises_validation_error" ]; disabledTestPaths = [ "tests/benchmarks" # avoid cyclic dependency "tests/test_docs.py" ]; pythonImportsCheck = [ "pydantic" ]; meta = with lib; { description = "Data validation and settings management using Python type hinting"; homepage = "https://github.com/pydantic/pydantic"; changelog = "https://github.com/pydantic/pydantic/blob/v${version}/HISTORY.md"; license = licenses.mit; maintainers = with maintainers; [ wd15 ]; }; }