python3Packages.djoser: init at 2.3.1 (#418489)

This commit is contained in:
Aleksana
2025-06-22 12:11:57 +08:00
committed by GitHub
2 changed files with 48 additions and 0 deletions
@@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
django,
djangorestframework-simplejwt,
social-auth-app-django,
}:
buildPythonPackage rec {
pname = "djoser";
version = "2.3.1";
src = fetchFromGitHub {
owner = "sunscrapers";
repo = "djoser";
tag = version;
hash = "sha256-xPhf7FiJSq5bHfAU5RKbobgnsRh/6cLcXP6vfrLdzJA=";
};
buildInputs = [
django
djangorestframework-simplejwt
social-auth-app-django
];
pyproject = true;
build-system = [
poetry-core
];
# djet isn't packaged yet
# nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "djoser" ];
meta = {
changelog = "https://github.com/sunscrapers/djoser/releases/tag/${version}";
description = "REST implementation of Django authentication system";
homepage = "https://github.com/sunscrapers/djoser";
maintainers = with lib.maintainers; [ MostafaKhaled ];
license = lib.licenses.mit;
};
}
+2
View File
@@ -4080,6 +4080,8 @@ self: super: with self; {
djmail = callPackage ../development/python-modules/djmail { };
djoser = callPackage ../development/python-modules/djoser { };
dkimpy = callPackage ../development/python-modules/dkimpy { };
dlib = callPackage ../development/python-modules/dlib { inherit (pkgs) dlib; };