drf-pydantic: init at 2.7.1 (#411728)

This commit is contained in:
Martin Weinelt 2025-07-15 17:25:16 +02:00 committed by GitHub
commit 8ee4b31ef3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pydantic,
hatchling,
djangorestframework,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "drf-pydantic";
version = "2.7.1";
pyproject = true;
src = fetchFromGitHub {
owner = "georgebv";
repo = "drf-pydantic";
tag = "v${version}";
hash = "sha256-ABtSoxj/+HHq4hj4Yb6bEiyOl00TCO/9tvBzhv6afxM=";
};
build-system = [
hatchling
];
dependencies = [
django
pydantic
djangorestframework
];
nativeChecksInputs = [
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/georgebv/drf-pydantic/releases/tag/${src.tag}";
description = "Use pydantic with the Django REST framework";
homepage = "https://github.com/georgebv/drf-pydantic";
maintainers = [ maintainers.kiara ];
license = licenses.mit;
};
}

View File

@ -4310,6 +4310,8 @@ self: super: with self; {
drf-orjson-renderer = callPackage ../development/python-modules/drf-orjson-renderer { };
drf-pydantic = callPackage ../development/python-modules/drf-pydantic { };
drf-spectacular = callPackage ../development/python-modules/drf-spectacular { };
drf-spectacular-sidecar = callPackage ../development/python-modules/drf-spectacular-sidecar { };