summary refs log tree commit diff
path: root/pkgs/development/python-modules/drf-nested-routers/default.nix
blob: db0212e4569773d1e3513bad421bd1c662bf2683 (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
38
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, django
, djangorestframework
, pytest
, pytest-cov
, pytest-django
, ipdb
, python
}:

buildPythonPackage rec {
  pname = "drf-nested-routers";
  version = "0.93.3";

  src = fetchFromGitHub {
    owner = "alanjds";
    repo = "drf-nested-routers";
    rev = "v${version}";
    sha256 = "1gmw6gwiqzfysx8qn7aan7xgkizxy64db94z30pm3bvn6jxv08si";
  };

  propagatedBuildInputs = [ django djangorestframework setuptools ];
  checkInputs = [ pytest pytest-cov pytest-django ipdb ];

  checkPhase = ''
    ${python.interpreter} runtests.py --nolint
  '';

  meta = with lib; {
    homepage = "https://github.com/alanjds/drf-nested-routers";
    description = "Provides routers and fields to create nested resources in the Django Rest Framework";
    license = licenses.asl20;
    maintainers = with maintainers; [ felschr ];
  };
}