From b74bbe882117ec3e5cec8adaa3a8d0403bc3f94c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 May 2024 10:01:49 +0200 Subject: [PATCH] python312Packages.drf-spectacular: refactor --- .../drf-spectacular/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/drf-spectacular/default.nix b/pkgs/development/python-modules/drf-spectacular/default.nix index f38a2fbf86bc..bc54ba30b98d 100644 --- a/pkgs/development/python-modules/drf-spectacular/default.nix +++ b/pkgs/development/python-modules/drf-spectacular/default.nix @@ -1,7 +1,5 @@ { lib , buildPythonPackage -, fetchFromGitHub -, fetchpatch , dj-rest-auth , django , django-allauth @@ -18,19 +16,25 @@ , drf-jwt , drf-nested-routers , drf-spectacular-sidecar +, fetchFromGitHub +, fetchpatch , inflection , jsonschema , psycopg2 , pytest-django , pytestCheckHook +, pythonOlder , pyyaml +, setuptools , uritemplate }: buildPythonPackage rec { pname = "drf-spectacular"; version = "0.27.1"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "tfranzel"; @@ -47,7 +51,11 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ django djangorestframework inflection @@ -77,9 +85,9 @@ buildPythonPackage rec { ]; disabledTests = [ - # requires django with gdal + # Test requires django with gdal "test_rest_framework_gis" - # outdated test artifact + # Outdated test artifact "test_pydantic_decoration" ];