1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 glibcLocales,
6 mpmath,
7
8 # Reverse dependency
9 sage,
10}:
11
12buildPythonPackage rec {
13 pname = "sympy";
14 version = "1.14.0";
15 format = "setuptools";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-09P+jfHloLQvDnvfUFQWl9vn0jdG6JSZDAMOKwXnJRc=";
20 };
21
22 nativeCheckInputs = [ glibcLocales ];
23
24 propagatedBuildInputs = [ mpmath ];
25
26 # tests take ~1h
27 doCheck = false;
28 pythonImportsCheck = [ "sympy" ];
29
30 passthru.tests = {
31 inherit sage;
32 };
33
34 meta = with lib; {
35 description = "Python library for symbolic mathematics";
36 mainProgram = "isympy";
37 homepage = "https://www.sympy.org/";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ lovek323 ];
40 teams = [ teams.sage ];
41 };
42}