From 7d959fa092e76650c3eebb5ca4ae637f178fe979 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 May 2024 17:18:35 +0200 Subject: [PATCH] python312Packages.pydiscovergy: refactor --- .../python-modules/pydiscovergy/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pydiscovergy/default.nix b/pkgs/development/python-modules/pydiscovergy/default.nix index 0c96eb8ddeda..f24171224cd7 100644 --- a/pkgs/development/python-modules/pydiscovergy/default.nix +++ b/pkgs/development/python-modules/pydiscovergy/default.nix @@ -5,6 +5,7 @@ , httpx , mashumaro , orjson +, pytest-asyncio , pytest-httpx , poetry-core , pytestCheckHook @@ -17,7 +18,7 @@ buildPythonPackage rec { pname = "pydiscovergy"; version = "3.0.1"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.10"; @@ -32,12 +33,15 @@ buildPythonPackage rec { sed -i '/addopts =/d' pyproject.toml ''; - nativeBuildInputs = [ + build-system = [ poetry-core + ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; - propagatedBuildInputs = [ + dependencies = [ authlib httpx mashumaro @@ -46,6 +50,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + pytest-asyncio pytest-httpx pytestCheckHook respx @@ -56,7 +61,7 @@ buildPythonPackage rec { ]; meta = with lib; { - description = "Async Python 3 library for interacting with the Discovergy API"; + description = "Library for interacting with the Discovergy API"; homepage = "https://github.com/jpbede/pydiscovergy"; changelog = "https://github.com/jpbede/pydiscovergy/releases/tag/v${version}"; license = licenses.mit;