1{ lib
2, buildPythonPackage
3, fetchPypi
4, glibcLocales
5, mpmath
6}:
7
8buildPythonPackage rec {
9 pname = "sympy";
10 version = "1.12";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-6/WVyNrD4P3EFSxRh4tJg5bsfzDnqRTWBx5nTUlCD7g=";
15 };
16
17 nativeCheckInputs = [ glibcLocales ];
18
19 propagatedBuildInputs = [ mpmath ];
20
21 # tests take ~1h
22 doCheck = false;
23 pythonImportsCheck = [ "sympy" ];
24
25 preCheck = ''
26 export LANG="en_US.UTF-8"
27 '';
28
29 meta = with lib; {
30 description = "A Python library for symbolic mathematics";
31 homepage = "https://www.sympy.org/";
32 license = licenses.bsd3;
33 maintainers = with maintainers; [ lovek323 ] ++ teams.sage.members;
34 };
35}