1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytools
5, pytest
6, six
7, sympy
8, pexpect
9, symengine
10}:
11
12buildPythonPackage rec {
13 pname = "pymbolic";
14 version = "2020.1";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "ca029399f9480f6d51fbac0349fddbb42d937620deb03befa0ba94ac08895e6b";
19 };
20
21 postConfigure = ''
22 substituteInPlace setup.py \
23 --replace "\"pytest>=2.3\"," ""
24 '';
25
26 checkInputs = [ sympy pexpect symengine pytest ];
27 propagatedBuildInputs = [
28 pytools
29 six
30 ];
31
32 # too many tests fail
33 doCheck = false;
34 checkPhase = ''
35 pytest test
36 '';
37
38 meta = with lib; {
39 description = "A package for symbolic computation";
40 homepage = "https://mathema.tician.de/software/pymbolic";
41 license = licenses.mit;
42 maintainers = [ maintainers.costrouc ];
43 };
44}