python3Packages.pydantic-core: 2.41.5 -> 2.46.4
This commit is contained in:
committed by
Martin Weinelt
parent
527b102631
commit
81d9d52bf7
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user