python312Packages.django-rest-registration: fix build (#359565)

This commit is contained in:
Colin 2024-11-29 16:05:43 +00:00 committed by GitHub
commit 55303d50c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ];
};
}