pythonPackages.drf-nested-routeres: init at 0.92.5

This commit is contained in:
Felix Tenley 2020-11-27 23:00:31 +01:00
parent 725a4dafa8
commit 5db1ef1e53
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, django
, djangorestframework
, pytest
, pytest-cov
, pytest-django
, ipdb
, python
}:
buildPythonPackage rec {
pname = "drf-nested-routers";
version = "0.92.5";
src = fetchFromGitHub {
owner = "alanjds";
repo = "drf-nested-routers";
rev = "v${version}";
sha256 = "1l1jza8xz6xcm3gwxh1k6pc8fs95cq3v751gxj497y1a83d26j8i";
};
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 ];
};
}

View file

@ -1933,6 +1933,8 @@ in {
dpkt = callPackage ../development/python-modules/dpkt { };
drf-nested-routers = callPackage ../development/python-modules/drf-nested-routers { };
drf-yasg = callPackage ../development/python-modules/drf-yasg { };
drms = callPackage ../development/python-modules/drms { };