1{ lib
2, buildPythonPackage
3, fetchPypi
4, glibcLocales
5, mpmath
6}:
7
8buildPythonPackage rec {
9 pname = "sympy";
10 version = "1.9";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "c7a880e229df96759f955d4f3970d4cabce79f60f5b18830c08b90ce77cd5fdc";
15 };
16
17 checkInputs = [ 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}