python311Packages.pydantic-compat: init at 0.1.2

Diff: pyapp-kit/app-model@refs/tags/v0.2.2...v0.2.4

Changelog: https://github.com/pyapp-kit/app-model/blob/v0.2.4/CHANGELOG.md
This commit is contained in:
Fabian Affolter 2023-12-31 12:25:33 +01:00
parent 88220567d3
commit dc3908f3fa
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, git
, hatch-vcs
, hatchling
, importlib-metadata
, pydantic
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pydantic-compat";
version = "0.1.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pyapp-kit";
repo = "pydantic-compat";
rev = "refs/tags/v${version}";
hash = "sha256-YJUfWu+nyGlwpJpxYghCKzj3CasdAaqYoNVCcfo/7YE=";
leaveDotGit = true;
};
nativeBuildInputs = [
git
hatch-vcs
hatchling
];
propagatedBuildInputs = [
importlib-metadata
pydantic
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pydantic_compat"
];
meta = with lib; {
description = "Compatibility layer for pydantic v1/v2";
homepage = "https://github.com/pyapp-kit/pydantic-compat";
changelog = "https://github.com/pyapp-kit/pydantic-compat/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -10202,6 +10202,8 @@ self: super: with self; {
pydantic = callPackage ../development/python-modules/pydantic { };
pydantic-compat = callPackage ../development/python-modules/pydantic-compat { };
pydantic-core = callPackage ../development/python-modules/pydantic-core { };
pydantic-extra-types = callPackage ../development/python-modules/pydantic-extra-types { };