depot/third_party/nixpkgs/pkgs/development/python-modules/drf-nested-routers/default.nix
Default email fcc03dbfc5 Project import generated by Copybara.
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
2021-02-13 15:23:35 +01:00

38 lines
885 B
Nix

{ 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 ];
};
}