14 buildPythonPackage rec {
18 build-system = [ setuptools ];
21 src = fetchFromGitHub {
23 repo = "symengine.py";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-PJUzA86SGCnDpqU9j/dr3PlM9inyi8SQX0HGqPQ9wQw=";
29 SymEngine_DIR = "${symengine}";
33 substituteInPlace setup.py \
34 --replace-fail "'cython>=0.29.24'" "'cython'"
36 export PATH=${cython}/bin:$PATH
39 dontUseCmakeConfigure = true;
40 nativeBuildInputs = [ cmake ];
42 buildInputs = [ cython ];
51 mkdir empty && cd empty
52 ${python.interpreter} ../bin/test_python.py
57 description = "Python library providing wrappers to SymEngine";
58 homepage = "https://github.com/symengine/symengine.py";
59 license = licenses.mit;