From 0419cb537e6e60c40463a8664a8becec3bd7444d Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 27 Nov 2024 20:29:50 +0800 Subject: [PATCH] python312Packages.django-rest-registration: fix build --- .../django-rest-registration/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/django-rest-registration/default.nix b/pkgs/development/python-modules/django-rest-registration/default.nix index b62c60d70372..2644da1d606f 100644 --- a/pkgs/development/python-modules/django-rest-registration/default.nix +++ b/pkgs/development/python-modules/django-rest-registration/default.nix @@ -7,23 +7,27 @@ pytest-django, pytestCheckHook, pythonOlder, + jwt, + setuptools, }: buildPythonPackage rec { pname = "django-rest-registration"; version = "0.9.0"; - format = "setuptools"; + pyproject = true; + + build-system = [ setuptools ]; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "apragacz"; - repo = pname; + repo = "django-rest-registration"; rev = "refs/tags/v${version}"; hash = "sha256-EaS1qN7GpfPPeSLwwQdVWSRO2dv0DG5LD7vnXckz4Bg="; }; - propagatedBuildInputs = [ + dependencies = [ django djangorestframework ]; @@ -31,6 +35,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook pytest-django + jwt ]; pythonImportsCheck = [ "rest_registration" ]; @@ -42,11 +47,11 @@ buildPythonPackage rec { "test_coreapi_autoschema_success" ]; - meta = with lib; { + meta = { description = "User-related REST API based on the awesome Django REST Framework"; homepage = "https://github.com/apragacz/django-rest-registration/"; changelog = "https://github.com/apragacz/django-rest-registration/releases/tag/${version}"; - license = licenses.mit; - maintainers = with maintainers; [ sephi ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ sephi ]; }; }