Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-rest-polymorphic / default.nix
blob5cf6f84ad55461b5bc035a6668d3c20f9bdb02b0
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , django
5 , django-polymorphic
6 , djangorestframework
7 , pytest-django
8 , pytest-mock
9 , pytestCheckHook
10 , six
13 buildPythonPackage rec {
14   pname = "django-rest-polymorphic";
15   version = "0.1.10";
16   format = "setuptools";
18   src = fetchFromGitHub {
19     owner = "apirobot";
20     repo = "django-rest-polymorphic";
21      # https://github.com/denisorehovsky/django-rest-polymorphic/issues/42
22     rev = "9d920eb91ef13144094426f9ebc0ca80247c0fe3";
23     hash = "sha256-k7Cl2QYkaGOZaTo8v5Wg9Wqh8x0WC5i9Sggqj8eeECY=";
24   };
26   propagatedBuildInputs = [
27     django
28     django-polymorphic
29     djangorestframework
30     six
31   ];
33   nativeCheckInputs = [
34     pytest-django
35     pytest-mock
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [ "rest_polymorphic" ];
41   meta = with lib; {
42     description = "Polymorphic serializers for Django REST Framework";
43     homepage = "https://github.com/apirobot/django-rest-polymorphic";
44     license = licenses.mit;
45     maintainers = with maintainers; [ ];
46   };