1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 pydantic,
7 hatchling,
8 djangorestframework,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "drf-pydantic";
14 version = "2.9.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "georgebv";
19 repo = "drf-pydantic";
20 tag = "v${version}";
21 hash = "sha256-RvDTequtxHyCsXV8IpNWdYNzdjkKEr8aAyS3ZFZTW1A=";
22 };
23
24 build-system = [
25 hatchling
26 ];
27
28 dependencies = [
29 django
30 pydantic
31 djangorestframework
32 ];
33
34 nativeChecksInputs = [
35 pytestCheckHook
36 ];
37
38 meta = with lib; {
39 changelog = "https://github.com/georgebv/drf-pydantic/releases/tag/${src.tag}";
40 description = "Use pydantic with the Django REST framework";
41 homepage = "https://github.com/georgebv/drf-pydantic";
42 maintainers = [ maintainers.kiara ];
43 license = licenses.mit;
44 };
45}