mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
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:
parent
88220567d3
commit
dc3908f3fa
54
pkgs/development/python-modules/pydantic-compat/default.nix
Normal file
54
pkgs/development/python-modules/pydantic-compat/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -10202,6 +10202,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
pydantic = callPackage ../development/python-modules/pydantic { };
|
pydantic = callPackage ../development/python-modules/pydantic { };
|
||||||
|
|
||||||
|
pydantic-compat = callPackage ../development/python-modules/pydantic-compat { };
|
||||||
|
|
||||||
pydantic-core = callPackage ../development/python-modules/pydantic-core { };
|
pydantic-core = callPackage ../development/python-modules/pydantic-core { };
|
||||||
|
|
||||||
pydantic-extra-types = callPackage ../development/python-modules/pydantic-extra-types { };
|
pydantic-extra-types = callPackage ../development/python-modules/pydantic-extra-types { };
|
||||||
|
Loading…
Reference in New Issue
Block a user