From 06f89fc55ec106eb8ee1b28daa34131669638bb8 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 18 Aug 2022 13:37:52 +0200 Subject: [PATCH] python310Packages.tableaudocumentapi: Fix build --- .../python-modules/tableaudocumentapi/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tableaudocumentapi/default.nix b/pkgs/development/python-modules/tableaudocumentapi/default.nix index cf9a55d7391c..ae6f374836d7 100644 --- a/pkgs/development/python-modules/tableaudocumentapi/default.nix +++ b/pkgs/development/python-modules/tableaudocumentapi/default.nix @@ -1,6 +1,8 @@ { lib , buildPythonPackage , fetchPypi +, lxml +, pytestCheckHook }: buildPythonPackage rec { @@ -12,13 +14,19 @@ buildPythonPackage rec { sha256 = "sha256-ahR+o4UgFLm/9aFsEqmlwXkcgTjqI0wU2Tl9EjVjLZs="; }; - # tests not inclued with release + propagatedBuildInputs = [ lxml ]; + + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "tableaudocumentapi" ]; + + # ModuleNotFoundError: No module named 'test.assets' doCheck = false; meta = with lib; { description = "A Python module for working with Tableau files"; homepage = "https://github.com/tableau/document-api-python"; license = licenses.mit; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }