1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 djangorestframework,
7 pytestCheckHook,
8 pytest-django,
9}:
10
11buildPythonPackage rec {
12 pname = "drf-writable-nested";
13 version = "0.7.2";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "beda-software";
18 repo = "drf-writable-nested";
19 tag = "v${version}";
20 hash = "sha256-VkQ3Di3vXxQAmvuMP8KpGVVdx7LMYcQFEF4ZsuA9KeA=";
21 };
22
23 propagatedBuildInputs = [
24 django
25 djangorestframework
26 ];
27
28 nativeCheckInputs = [
29 pytest-django
30 pytestCheckHook
31 ];
32
33 meta = with lib; {
34 description = "Writable nested model serializer for Django REST Framework";
35 homepage = "https://github.com/beda-software/drf-writable-nested";
36 license = licenses.bsd2;
37 maintainers = with maintainers; [ ambroisie ];
38 };
39}