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