2020-11-27 22:00:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, django
|
|
|
|
, djangorestframework
|
|
|
|
, pytest
|
|
|
|
, pytest-cov
|
|
|
|
, pytest-django
|
|
|
|
, ipdb
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "drf-nested-routers";
|
2021-05-08 18:45:53 +01:00
|
|
|
version = "0.93.3";
|
2020-11-27 22:00:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alanjds";
|
|
|
|
repo = "drf-nested-routers";
|
|
|
|
rev = "v${version}";
|
2021-05-08 18:45:53 +01:00
|
|
|
sha256 = "1gmw6gwiqzfysx8qn7aan7xgkizxy64db94z30pm3bvn6jxv08si";
|
2020-11-27 22:00:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|