2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, glibcLocales
|
|
|
|
, mpmath
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sympy";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "1.12";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-6/WVyNrD4P3EFSxRh4tJg5bsfzDnqRTWBx5nTUlCD7g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ glibcLocales ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|