1{ lib
2, buildPythonPackage
3, fetchPypi
4, gmpy2
5, isort
6, mpmath
7, numpy
8, pythonOlder
9, scipy
10, setuptools-scm
11}:
12
13buildPythonPackage rec {
14 pname = "diofant";
15 version = "0.12.0";
16 disabled = pythonOlder "3.9";
17
18 src = fetchPypi {
19 inherit version;
20 pname = "Diofant";
21 sha256 = "sha256-G0CTSoDSduiWxlrk5XjnX5ldNZ9f7yxaJeUPO3ezJgo=";
22 };
23
24 nativeBuildInputs = [
25 isort
26 setuptools-scm
27 ];
28
29 propagatedBuildInputs = [
30 gmpy2
31 mpmath
32 numpy
33 scipy
34 ];
35
36 # tests take ~1h
37 doCheck = false;
38
39 pythonImportsCheck = [ "diofant" ];
40
41 meta = with lib; {
42 description = "A Python CAS library";
43 homepage = "https://diofant.readthedocs.io/";
44 license = licenses.bsd3;
45 maintainers = with maintainers; [ suhr ];
46 };
47}