2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
|
|
|
, mpmath
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sympy";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.11.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-4yOA3OY8t8AQjtUlVwCS/UUWi9ri+qF+UoIh73Lohlg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ glibcLocales ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ mpmath ];
|
|
|
|
|
|
|
|
# tests take ~1h
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "sympy" ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python library for symbolic mathematics";
|
|
|
|
homepage = "https://www.sympy.org/";
|
|
|
|
license = licenses.bsd3;
|
2020-11-21 19:51:51 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ] ++ teams.sage.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|