mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 00:20:58 +00:00
python3packages/django-rest-knox: init at 5.1.0 (#541733)
This commit is contained in:
@@ -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";
|
||||
|
||||
52
pkgs/development/python-modules/django-rest-knox/default.nix
Normal file
52
pkgs/development/python-modules/django-rest-knox/default.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user