Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / djangorestframework / default.nix
blob8bec94e665198d16f2c489bd9f52373f3940ff95
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , coreapi
5 , django
6 , django-guardian
7 , pythonOlder
8 , pytest-django
9 , pytest7CheckHook
10 , pytz
11 , pyyaml
12 , uritemplate
15 buildPythonPackage rec {
16   pname = "djangorestframework";
17   version = "3.14.0";
18   format = "setuptools";
19   disabled = pythonOlder "3.6";
21   src = fetchFromGitHub {
22     owner = "encode";
23     repo = "django-rest-framework";
24     rev = version;
25     hash = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4=";
26   };
28   propagatedBuildInputs = [
29     django
30     pytz
31   ];
33   nativeCheckInputs = [
34     pytest-django
35     pytest7CheckHook
37     # optional tests
38     coreapi
39     django-guardian
40     pyyaml
41     uritemplate
42   ];
44   pythonImportsCheck = [ "rest_framework" ];
46   meta = with lib; {
47     description = "Web APIs for Django, made easy";
48     homepage = "https://www.django-rest-framework.org/";
49     maintainers = with maintainers; [ desiderius ];
50     license = licenses.bsd2;
51   };