From 54f7f1fe10c99d50ec360cfea0be746ef30b7021 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Apr 2024 09:32:43 +0200 Subject: [PATCH] python312Packages.bring-api: refactor - enable tests --- .../python-modules/bring-api/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/bring-api/default.nix b/pkgs/development/python-modules/bring-api/default.nix index fcf3eddfb9e0..49cf42c8ab39 100644 --- a/pkgs/development/python-modules/bring-api/default.nix +++ b/pkgs/development/python-modules/bring-api/default.nix @@ -1,9 +1,13 @@ { lib , aiohttp +, aioresponses , buildPythonPackage , fetchFromGitHub -, setuptools +, pytest-asyncio +, pytestCheckHook +, python-dotenv , pythonOlder +, setuptools }: buildPythonPackage rec { @@ -20,16 +24,20 @@ buildPythonPackage rec { hash = "sha256-fhZMn0v908VzV+JLuS8tM+BPKJBoj77vEh1pINL4Cco="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp ]; - # Module has no tests - doCheck = false; + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytestCheckHook + python-dotenv + ]; pythonImportsCheck = [ "bring_api"