Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pydantic-compat / default.nix
blob33ed206578ed78c784a08f2732efe106a032d8ac
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , git
5 , hatch-vcs
6 , hatchling
7 , importlib-metadata
8 , pydantic
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "pydantic-compat";
15   version = "0.1.2";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "pyapp-kit";
22     repo = "pydantic-compat";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-YJUfWu+nyGlwpJpxYghCKzj3CasdAaqYoNVCcfo/7YE=";
25     leaveDotGit = true;
26   };
28   nativeBuildInputs = [
29     git
30     hatch-vcs
31     hatchling
32   ];
34   propagatedBuildInputs = [
35     importlib-metadata
36     pydantic
37   ];
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [
44     "pydantic_compat"
45   ];
47   meta = with lib; {
48     description = "Compatibility layer for pydantic v1/v2";
49     homepage = "https://github.com/pyapp-kit/pydantic-compat";
50     changelog = "https://github.com/pyapp-kit/pydantic-compat/releases/tag/v${version}";
51     license = licenses.bsd3;
52     maintainers = with maintainers; [ fab ];
53   };