From 5b903c6d40ee945ef8098e230d5c11466ff1af79 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Sat, 15 Nov 2025 14:03:28 +0100 Subject: [PATCH] arelle: fix build, 2.37.61 -> 2.37.72 --- .../python-modules/arelle/default.nix | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/arelle/default.nix b/pkgs/development/python-modules/arelle/default.nix index 032d6b02b31e..9654ad7f97c4 100644 --- a/pkgs/development/python-modules/arelle/default.nix +++ b/pkgs/development/python-modules/arelle/default.nix @@ -10,6 +10,7 @@ certifi, filelock, isodate, + jaconv, jsonschema, lxml, numpy, @@ -25,17 +26,17 @@ tkinter, aniso8601, - pycryptodome, + cheroot, + graphviz, + holidays, + matplotlib, pg8000, + pycryptodome, pymysql, pyodbc, - rdflib, - holidays, pytz, + rdflib, tinycss2, - graphviz, - cheroot, - cherrypy, tornado, sphinxHook, @@ -44,20 +45,21 @@ sphinx-copybutton, furo, + writableTmpDirAsHomeHook, pytestCheckHook, boto3, }: buildPythonPackage rec { pname = "arelle${lib.optionalString (!gui) "-headless"}"; - version = "2.37.61"; + version = "2.37.72"; pyproject = true; src = fetchFromGitHub { owner = "Arelle"; repo = "Arelle"; tag = version; - hash = "sha256-xz3sDAgE1Qpml8V+2y+q/tTda6uGZuMnNSEGdIjLlzI="; + hash = "sha256-wytYETzntY1sGHgXua/MOkceiNKjr5qddAGWPMJni98="; }; outputs = [ @@ -71,6 +73,10 @@ buildPythonPackage rec { 'requires = ["setuptools", "wheel", "setuptools_scm[toml]"]' ''; + pythonRelaxDeps = [ + "pillow" # pillow's current version is above what arelle officially supports, but it should be fine + ]; + build-system = [ setuptools setuptools-scm @@ -81,6 +87,7 @@ buildPythonPackage rec { certifi filelock isodate + jaconv jsonschema lxml numpy @@ -103,14 +110,15 @@ buildPythonPackage rec { rdflib ]; efm = [ + aniso8601 holidays + matplotlib pytz ]; esef = [ tinycss2 ]; objectmaker = [ graphviz ]; webserver = [ cheroot - cherrypy tornado ]; xule = [ aniso8601 ]; @@ -131,15 +139,12 @@ buildPythonPackage rec { ''; nativeCheckInputs = [ + writableTmpDirAsHomeHook pytestCheckHook boto3 ] ++ lib.flatten (lib.attrValues optional-dependencies); - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTestPaths = [ "tests/integration_tests" ]