Files
nixpkgs/pkgs/development/python-modules/djoser/default.nix
Mostafa Khaled 76e2d08c30 python3Packages.djoser: fix attribute ordering
Move pyproject and build-system to conventional positions and correct
dependencies attribute name.
2025-06-22 23:25:37 +03:00

44 lines
953 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
django,
djangorestframework-simplejwt,
social-auth-app-django,
}:
buildPythonPackage rec {
pname = "djoser";
version = "2.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "sunscrapers";
repo = "djoser";
tag = version;
hash = "sha256-xPhf7FiJSq5bHfAU5RKbobgnsRh/6cLcXP6vfrLdzJA=";
};
build-system = [ poetry-core ];
dependencies = [
django
djangorestframework-simplejwt
social-auth-app-django
];
# 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;
};
}