14 buildPythonPackage rec {
17 format = "setuptools";
19 src = fetchFromGitHub {
22 rev = "refs/tags/${version}";
23 hash = "sha256-9BGcaC3TyolGeO65/H42T/WQY6z5vc1h+MA+8MGFChU=";
26 nativeBuildInputs = [ setuptools ];
28 optional-dependencies = {
29 gmpy = lib.optionals (!isPyPy) [ gmpy2 ];
36 nativeCheckInputs = [ pytestCheckHook ];
39 homepage = "https://mpmath.org/";
40 description = "Pure-Python library for multiprecision floating arithmetic";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ lovek323 ];
43 platforms = platforms.unix;