From e004ecff1c69b2d7a031b0731842333431463b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 25 May 2022 20:05:27 +0200 Subject: [PATCH] python310Packages.djangorestframework-recursive: init at 0.1.2 --- .../djangorestframework-recursive/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/djangorestframework-recursive/default.nix diff --git a/pkgs/development/python-modules/djangorestframework-recursive/default.nix b/pkgs/development/python-modules/djangorestframework-recursive/default.nix new file mode 100644 index 000000000000..e8dfe0c11550 --- /dev/null +++ b/pkgs/development/python-modules/djangorestframework-recursive/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, django +, djangorestframework +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "djangorestframework-recursive"; + version = "0.1.2"; + + src = fetchFromGitHub { + owner = "heywbj"; + repo = "django-rest-framework-recursive"; + rev = version; + sha256 = "sha256-Q/6yxpz3c402sMZudAeFIht9+5GmTRlzM51AMAx5muY="; + }; + + propagatedBuildInputs = [ + django + djangorestframework + ]; + + # incompatible with newer django versions + doCheck = false; + + pythonImportsCheck = [ + "rest_framework_recursive" + ]; + + meta = with lib; { + description = " Recursive Serialization for Django REST framework "; + homepage = "https://github.com/heywbj/django-rest-framework-recursive"; + license = licenses.isc; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 245a82531d1c..0f10b43dfd67 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2394,6 +2394,8 @@ in { djangorestframework-camel-case = callPackage ../development/python-modules/djangorestframework-camel-case { }; + djangorestframework-recursive = callPackage ../development/python-modules/djangorestframework-recursive { }; + djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { }; django_reversion = callPackage ../development/python-modules/django_reversion { };