3
0
Fork 0
forked from mirrors/nixpkgs

python310Packages.pymbolic: enable tests

This commit is contained in:
Sandro Jäckel 2022-05-09 13:40:10 +02:00
parent 2578b89c84
commit 93cb80377c
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -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 ];
};