2019-04-15 21:13:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytools
|
|
|
|
, pytest
|
|
|
|
, six
|
|
|
|
, sympy
|
|
|
|
, pexpect
|
|
|
|
, symengine
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymbolic";
|
2019-10-24 06:47:44 +00:00
|
|
|
version = "2019.2";
|
2019-04-15 21:13:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 06:47:44 +00:00
|
|
|
sha256 = "a7507864a76574d72bf5732497b247661c6ad73bb277cd9c8aae09e90a62e05a";
|
2019-04-15 21:13:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A package for symbolic computation";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://mathema.tician.de/software/pymbolic";
|
2019-04-15 21:13:24 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|