From 93cb80377cd1bc7c55bb91edd69d4f44639d8a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 9 May 2022 13:40:10 +0200 Subject: [PATCH] python310Packages.pymbolic: enable tests --- .../python-modules/pymbolic/default.nix | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/pymbolic/default.nix b/pkgs/development/python-modules/pymbolic/default.nix index d5087146f117..9d6d799fc32e 100644 --- a/pkgs/development/python-modules/pymbolic/default.nix +++ b/pkgs/development/python-modules/pymbolic/default.nix @@ -1,12 +1,9 @@ { lib , buildPythonPackage , fetchPypi +, matchpy , pytools -, pytest -, six -, sympy -, pexpect -, symengine +, pytestCheckHook }: buildPythonPackage rec { @@ -18,26 +15,18 @@ buildPythonPackage rec { sha256 = "sha256-tS9FHdC5gD4D3jMgrzt85XIwcAYcbSMcACFvbaQlkBI="; }; - postConfigure = '' - substituteInPlace setup.py \ - --replace "\"pytest>=2.3\"," "" - ''; - - checkInputs = [ sympy pexpect symengine pytest ]; propagatedBuildInputs = [ pytools - six ]; - # too many tests fail - doCheck = false; - checkPhase = '' - pytest test - ''; + checkInputs = [ + matchpy + pytestCheckHook + ]; meta = with lib; { description = "A package for symbolic computation"; - homepage = "https://mathema.tician.de/software/pymbolic"; + homepage = "https://documen.tician.de/pymbolic/"; license = licenses.mit; maintainers = [ maintainers.costrouc ]; };