14 buildPythonPackage rec {
15 pname = "pydantic-compat";
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
23 repo = "pydantic-compat";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-YJUfWu+nyGlwpJpxYghCKzj3CasdAaqYoNVCcfo/7YE=";
35 propagatedBuildInputs = [
40 nativeCheckInputs = [ pytestCheckHook ];
42 pythonImportsCheck = [ "pydantic_compat" ];
45 description = "Compatibility layer for pydantic v1/v2";
46 homepage = "https://github.com/pyapp-kit/pydantic-compat";
47 changelog = "https://github.com/pyapp-kit/pydantic-compat/releases/tag/v${version}";
48 license = licenses.bsd3;
49 maintainers = with maintainers; [ fab ];