summary refs log tree commit diff
path: root/pkgs/development/python-modules/drf-writable-nested/default.nix
blob: eaf5aa1b9e1f076a50ad5fd78ceccf9c6a83747b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, djangorestframework
, pytestCheckHook
, pytest-django
}:

buildPythonPackage rec {
  pname = "drf-writable-nested";
  version = "0.7.0";

  src = fetchFromGitHub {
    owner = "beda-software";
    repo = "drf-writable-nested";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-/7MZAw0clzzlBdYchUVKldWT7WqtwdSe+016QAP0hqk=";
  };

  propagatedBuildInputs = [
    django
    djangorestframework
  ];

  checkInputs = [
    pytest-django
    pytestCheckHook
  ];

  meta = with lib; {
    description = "Writable nested model serializer for Django REST Framework";
    homepage = "https://github.com/beda-software/drf-writable-nested";
    license = licenses.bsd2;
    maintainers = with maintainers; [ ambroisie ];
  };
}