1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5, glibcLocales
6, mpmath
7}:
8
9buildPythonPackage rec {
10 pname = "sympy";
11 version = "1.6.2"; # Upgrades may break sage. Please test or ping @timokau.
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1cfadcc80506e4b793f5b088558ca1fcbeaec24cd6fc86f1fdccaa3ee1d48708";
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 timokau ];
35 };
36}