From 06fc427d0d791d723024dc19b80183cc0d2c4e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 25 May 2022 19:59:33 +0200 Subject: [PATCH] python310Packages.djangorestframework-camel-case: init at 1.3.0 --- .../default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/djangorestframework-camel-case/default.nix diff --git a/pkgs/development/python-modules/djangorestframework-camel-case/default.nix b/pkgs/development/python-modules/djangorestframework-camel-case/default.nix new file mode 100644 index 000000000000..1a2cde8881c8 --- /dev/null +++ b/pkgs/development/python-modules/djangorestframework-camel-case/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchPypi +, djangorestframework +, six +}: + +buildPythonPackage rec { + pname = "djangorestframework-camel-case"; + version = "1.3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-31kTYv+kSMjwo1TFauilP7eruxXiIpUdDG9feBYzkH4="; + }; + + propagatedBuildInputs = [ + djangorestframework + ]; + + checkInputs = [ + six + ]; + + # tests are only on GitHub but there are no tags + # https://github.com/vbabiy/djangorestframework-camel-case/issues/116 + doCheck = false; + + pythonImportsCheck = [ "djangorestframework_camel_case" ]; + + meta = with lib; { + description = "Camel case JSON support for Django REST framework"; + homepage = "https://github.com/vbabiy/djangorestframework-camel-case"; + license = licenses.bsd3; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4557d81cf53a..c547c8824c93 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2390,6 +2390,8 @@ in { djangorestframework-dataclasses = callPackage ../development/python-modules/djangorestframework-dataclasses { }; + djangorestframework-camel-case = callPackage ../development/python-modules/djangorestframework-camel-case { }; + djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { }; django_reversion = callPackage ../development/python-modules/django_reversion { };