Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.djangorestframework-jsonp: init at 1.0.2 #350423

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3522,6 +3522,8 @@ self: super: with self; {

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-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { };
Expand Down