diff options
-rw-r--r-- | pkgs/development/python-modules/django-rest-polymorphic/default.nix | 45 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django-rest-polymorphic/default.nix b/pkgs/development/python-modules/django-rest-polymorphic/default.nix new file mode 100644 index 000000000000..c53fd183db91 --- /dev/null +++ b/pkgs/development/python-modules/django-rest-polymorphic/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, django +, django-polymorphic +, djangorestframework +, pytest-django +, pytest-mock +, pytestCheckHook +, six +}: + +buildPythonPackage rec { + pname = "django-rest-polymorphic"; + version = "0.1.9"; + + src = fetchFromGitHub { + owner = "apirobot"; + repo = "django-rest-polymorphic"; + rev = "v${version}"; + sha256 = "sha256-p3ew2NONSyiGzDzxGTy/cx3fcQhhvnzqopJzgqhXadY="; + }; + + propagatedBuildInputs = [ + django + django-polymorphic + djangorestframework + six + ]; + + checkInputs = [ + pytest-django + pytest-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "rest_polymorphic" ]; + + meta = with lib; { + description = "Polymorphic serializers for Django REST Framework"; + homepage = "https://github.com/apirobot/django-rest-polymorphic"; + license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4557d81cf53a..28eb4d13f070 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2384,6 +2384,8 @@ in { django-rest-auth = callPackage ../development/python-modules/django-rest-auth { }; + django-rest-polymorphic = callPackage ../development/python-modules/django-rest-polymorphic { }; + django-rq = callPackage ../development/python-modules/django-rq { }; djangorestframework = callPackage ../development/python-modules/djangorestframework { }; |