Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5, django-polymorphic 6, djangorestframework 7, pytest-django 8, pytest-mock 9, pytestCheckHook 10, six 11}: 12 13buildPythonPackage rec { 14 pname = "django-rest-polymorphic"; 15 version = "0.1.10"; 16 17 src = fetchFromGitHub { 18 owner = "apirobot"; 19 repo = "django-rest-polymorphic"; 20 # https://github.com/denisorehovsky/django-rest-polymorphic/issues/42 21 rev = "9d920eb91ef13144094426f9ebc0ca80247c0fe3"; 22 hash = "sha256-k7Cl2QYkaGOZaTo8v5Wg9Wqh8x0WC5i9Sggqj8eeECY="; 23 }; 24 25 propagatedBuildInputs = [ 26 django 27 django-polymorphic 28 djangorestframework 29 six 30 ]; 31 32 nativeCheckInputs = [ 33 pytest-django 34 pytest-mock 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "rest_polymorphic" ]; 39 40 meta = with lib; { 41 description = "Polymorphic serializers for Django REST Framework"; 42 homepage = "https://github.com/apirobot/django-rest-polymorphic"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ SuperSandro2000 ]; 45 }; 46}