python3Packages.djangorestframework-jsonp: init at 1.0.2 (#350423)

This commit is contained in:
Yt 2024-10-24 06:20:49 -04:00 committed by GitHub
commit 4a43c3a347
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
python,
pytest-django,
pytestCheckHook,
djangorestframework,
setuptools,
}:
buildPythonPackage rec {
pname = "djangorestframework-jsonp";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "jpadilla";
repo = "django-rest-framework-jsonp";
rev = "refs/tags/${version}";
hash = "sha256-4mIO69GhtvbQBtztHVQYIDDDSZpKg0g7BFNHEupiYTs=";
};
build-system = [ setuptools ];
dependencies = [
django
djangorestframework
];
checkInputs = [
pytestCheckHook
pytest-django
];
# Test fail with Django >=4
# https://github.com/jpadilla/django-rest-framework-jsonp/issues/14
doCheck = false;
checkPhase = ''
runHook preCheck
rm tests/test_renderers.py
${python.interpreter} runtests.py
runHook postCheck
'';
pythonImportsCheck = [ "rest_framework_jsonp" ];
meta = {
description = "JSONP support for Django REST Framework";
homepage = "https://jpadilla.github.io/django-rest-framework-jsonp/";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.onny ];
};
}

View File

@ -3524,6 +3524,8 @@ self: super: with self; {
djangorestframework-guardian2 = callPackage ../development/python-modules/djangorestframework-guardian2 { }; djangorestframework-guardian2 = callPackage ../development/python-modules/djangorestframework-guardian2 { };
djangorestframework-jsonp = callPackage ../development/python-modules/djangorestframework-jsonp { };
djangorestframework-recursive = callPackage ../development/python-modules/djangorestframework-recursive { }; djangorestframework-recursive = callPackage ../development/python-modules/djangorestframework-recursive { };
djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { }; djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { };