From 7e65f4e8651c74659844b07f22e2d3ddd9c2eb02 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 15 May 2022 16:08:02 +0200 Subject: [PATCH] python310Packages.pymbolic: remove pytest --- .../python-modules/pymbolic/default.nix | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pymbolic/default.nix b/pkgs/development/python-modules/pymbolic/default.nix index 9d6d799fc32e..44aa012d57d0 100644 --- a/pkgs/development/python-modules/pymbolic/default.nix +++ b/pkgs/development/python-modules/pymbolic/default.nix @@ -2,17 +2,21 @@ , buildPythonPackage , fetchPypi , matchpy -, pytools , pytestCheckHook +, pythonOlder +, pytools }: buildPythonPackage rec { pname = "pymbolic"; version = "2022.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-tS9FHdC5gD4D3jMgrzt85XIwcAYcbSMcACFvbaQlkBI="; + hash = "sha256-tS9FHdC5gD4D3jMgrzt85XIwcAYcbSMcACFvbaQlkBI="; }; propagatedBuildInputs = [ @@ -24,10 +28,20 @@ buildPythonPackage rec { pytestCheckHook ]; + postPatch = '' + # pytest is a test requirement not a run-time one + substituteInPlace setup.py \ + --replace '"pytest>=2.3",' "" + ''; + + pythonImportsCheck = [ + "pymbolic" + ]; + meta = with lib; { description = "A package for symbolic computation"; homepage = "https://documen.tician.de/pymbolic/"; license = licenses.mit; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }