symengine: init at 0.3.0

This commit is contained in:
Chris Ostrouchov 2019-04-15 17:10:47 -04:00
parent acba817161
commit 1c87fac0b9
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, fetchPypi
, cython
, cmake
, symengine
, nose
}:
buildPythonPackage rec {
pname = "symengine";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "e86d13aadc9f765f2c5462da32950edd36d1a0a52dbfc96e766be3689957c04d";
};
postConfigure = ''
substituteInPlace setup.py \
--replace "\"cmake\"" "\"${cmake}/bin/cmake\""
substituteInPlace cmake/FindCython.cmake \
--replace "SET(CYTHON_BIN cython" "SET(CYTHON_BIN ${cython}/bin/cython"
'';
buildInputs = [ cython cmake ];
setupPyBuildFlags = [ "--symengine-dir=${symengine}/" ];
# tests fail due to trying to import local "symengine" directory
doCheck = false;
checkPhase = ''
nosetests symengine/tests -v
'';
meta = with lib; {
description = "Python library providing wrappers to SymEngine";
homepage = https://github.com/symengine/symengine.py;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -5937,6 +5937,8 @@ in
svtplay-dl = callPackage ../tools/misc/svtplay-dl { };
symengine = callPackage ../development/libraries/symengine { };
sysbench = callPackage ../development/tools/misc/sysbench {};
system-config-printer = callPackage ../tools/misc/system-config-printer {