summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-rest-polymorphic/default.nix
blob: 13b2fdca386539ad4d381d56297feab60f02e0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  django,
  django-polymorphic,
  djangorestframework,
  pytest-django,
  pytest-mock,
  pytestCheckHook,
  six,
}:

buildPythonPackage {
  pname = "django-rest-polymorphic";
  version = "0.1.10";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "apirobot";
    repo = "django-rest-polymorphic";
    # https://github.com/denisorehovsky/django-rest-polymorphic/issues/42
    rev = "9d920eb91ef13144094426f9ebc0ca80247c0fe3";
    hash = "sha256-k7Cl2QYkaGOZaTo8v5Wg9Wqh8x0WC5i9Sggqj8eeECY=";
  };

  propagatedBuildInputs = [
    django
    django-polymorphic
    djangorestframework
    six
  ];

  nativeCheckInputs = [
    pytest-django
    pytest-mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "rest_polymorphic" ];

  meta = {
    description = "Polymorphic serializers for Django REST Framework";
    homepage = "https://github.com/apirobot/django-rest-polymorphic";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}