at master 953 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 django, 7 djangorestframework-simplejwt, 8 social-auth-app-django, 9}: 10 11buildPythonPackage rec { 12 pname = "djoser"; 13 version = "2.3.3"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "sunscrapers"; 18 repo = "djoser"; 19 tag = version; 20 hash = "sha256-RFOKEjAh5k/Bx7cj6ty2vQsW61lsXfJIJDOZeqL6iCE="; 21 }; 22 23 build-system = [ poetry-core ]; 24 25 dependencies = [ 26 django 27 djangorestframework-simplejwt 28 social-auth-app-django 29 ]; 30 31 # djet isn't packaged yet 32 # nativeCheckInputs = [ pytestCheckHook ]; 33 34 pythonImportsCheck = [ "djoser" ]; 35 36 meta = { 37 changelog = "https://github.com/sunscrapers/djoser/releases/tag/${src.tag}"; 38 description = "REST implementation of Django authentication system"; 39 homepage = "https://github.com/sunscrapers/djoser"; 40 maintainers = with lib.maintainers; [ MostafaKhaled ]; 41 license = lib.licenses.mit; 42 }; 43}