12 buildPythonPackage rec {
15 format = "setuptools";
17 src = fetchFromGitHub {
19 repo = "symengine.py";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-03lHip0iExfptrUe5ObA6xXrsfS4QJPrh1Z0v7q2lDI=";
25 substituteInPlace setup.py \
26 --replace "\"cmake\"" "\"${cmake}/bin/cmake\"" \
27 --replace "'cython>=0.29.24'" "'cython'"
30 nativeBuildUnputs = [ cmake ];
32 buildInputs = [ cython ];
34 nativeCheckInputs = [ pytest sympy ];
37 "--symengine-dir=${symengine}/"
38 "--define=\"CYTHON_BIN=${cython}/bin/cython\""
44 ${python.interpreter} ../bin/test_python.py
48 description = "Python library providing wrappers to SymEngine";
49 homepage = "https://github.com/symengine/symengine.py";
50 license = licenses.mit;