1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, django
6, djangorestframework
7, pytest
8, pytest-cov
9, pytest-django
10, ipdb
11, python
12}:
13
14buildPythonPackage rec {
15 pname = "drf-nested-routers";
16 version = "0.93.3";
17
18 src = fetchFromGitHub {
19 owner = "alanjds";
20 repo = "drf-nested-routers";
21 rev = "v${version}";
22 sha256 = "1gmw6gwiqzfysx8qn7aan7xgkizxy64db94z30pm3bvn6jxv08si";
23 };
24
25 propagatedBuildInputs = [ django djangorestframework setuptools ];
26 checkInputs = [ pytest pytest-cov pytest-django ipdb ];
27
28 checkPhase = ''
29 ${python.interpreter} runtests.py --nolint
30 '';
31
32 meta = with lib; {
33 homepage = "https://github.com/alanjds/drf-nested-routers";
34 description = "Provides routers and fields to create nested resources in the Django Rest Framework";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ felschr ];
37 };
38}