summaryrefslogtreecommitdiffstats
path: root/pkgs/development
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-05-26 00:30:16 +0200
committerGitHub <noreply@github.com>2022-05-26 00:30:16 +0200
commit012ac668ef63e579361429a1304507382d6bd254 (patch)
treee283a1c835592192ec05d3fb4b2672cbdb3f6c60 /pkgs/development
parentf59b7ca34c0ec459d00a601536a20d727023f75c (diff)
parente004ecff1c69b2d7a031b0731842333431463b55 (diff)
Merge pull request #174572 from SuperSandro2000/djangorestframework-recursive
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/djangorestframework-recursive/default.nix37
1 files changed, 37 insertions, 0 deletions
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 ];
+ };
+}