diff --git a/pkgs/development/python-modules/pydantic-core/default.nix b/pkgs/development/python-modules/pydantic-core/default.nix index c59679649a88..6f580895976f 100644 --- a/pkgs/development/python-modules/pydantic-core/default.nix +++ b/pkgs/development/python-modules/pydantic-core/default.nix @@ -2,9 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, - cargo, rustPlatform, - rustc, typing-extensions, pytestCheckHook, hypothesis, @@ -21,26 +19,31 @@ let pydantic-core = buildPythonPackage rec { pname = "pydantic-core"; - version = "2.41.5"; + version = "2.46.4"; pyproject = true; src = fetchFromGitHub { owner = "pydantic"; - repo = "pydantic-core"; - tag = "v${version}"; - hash = "sha256-oIYHLSep8tWOXEaUybXG8Gv9WBoPGQ1Aj7QyqYksvMw="; + repo = "pydantic"; + tag = "core-v${version}"; + hash = "sha256-G4Xo6BF6tOn4g/qG3RNDP3/+lYnCOuw3AB1OrVOGcSA="; }; + sourceRoot = "${src.name}/pydantic-core"; + cargoDeps = rustPlatform.fetchCargoVendor { - inherit pname version src; - hash = "sha256-Kvc0a34C6oGc9oS/iaPaazoVUWn5ABUgrmPa/YocV+Y="; + inherit + pname + version + src + sourceRoot + ; + hash = "sha256-5L317YTV7/Bc/YJLLzc745oJntiYkcZupdeUxiQwcOU="; }; nativeBuildInputs = [ - cargo rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook - rustc ]; dependencies = [ typing-extensions ]; @@ -64,9 +67,8 @@ let ]; meta = { - changelog = "https://github.com/pydantic/pydantic-core/releases/tag/${src.tag}"; description = "Core validation logic for pydantic written in rust"; - homepage = "https://github.com/pydantic/pydantic-core"; + homepage = "https://github.com/pydantic/pydantic/tree/main/pydantic-core"; license = lib.licenses.mit; inherit (pydantic.meta) maintainers; };