python3packages/django-rest-knox: init at 5.1.0 (#541733)

This commit is contained in:
Sandro
2026-07-14 12:03:46 +00:00
committed by GitHub
3 changed files with 60 additions and 0 deletions

View File

@@ -6252,6 +6252,12 @@
github = "darkyzhou";
githubId = 7220778;
};
darshancode2005 = {
name = "Darshan Thakare";
email = "darshanthakaregsoc2023@gmail.com";
github = "DarshanCode2005";
githubId = 143271270;
};
daru-san = {
name = "Daru";
email = "zadarumaka@proton.me";

View File

@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
django,
djangorestframework,
freezegun,
pytest-django,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "django-rest-knox";
version = "5.1.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-rest-knox";
tag = finalAttrs.version;
hash = "sha256-YK2dD2QAnrgDqWy506afRnEbnla4VT8RFV4Rg0BRjEY=";
};
build-system = [ setuptools ];
dependencies = [
django
djangorestframework
];
nativeCheckInputs = [
freezegun
pytest-django
pytestCheckHook
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=knox_project.settings
'';
pythonImportsCheck = [ "knox" ];
meta = {
description = "Authentication module for Django REST Framework";
homepage = "https://github.com/jazzband/django-rest-knox";
changelog = "https://github.com/jazzband/django-rest-knox/blob/${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ darshancode2005 ];
};
})

View File

@@ -4756,6 +4756,8 @@ self: super: with self; {
django-rest-auth = callPackage ../development/python-modules/django-rest-auth { };
django-rest-knox = callPackage ../development/python-modules/django-rest-knox { };
django-rest-polymorphic = callPackage ../development/python-modules/django-rest-polymorphic { };
django-rest-registration = callPackage ../development/python-modules/django-rest-registration { };