diff --git a/pkgs/development/python-modules/mpmath/default.nix b/pkgs/development/python-modules/mpmath/default.nix index a78d24afe9d2..01c2299b1d8c 100644 --- a/pkgs/development/python-modules/mpmath/default.nix +++ b/pkgs/development/python-modules/mpmath/default.nix @@ -5,25 +5,31 @@ gmpy2, isPyPy, setuptools, + setuptools-scm, pytestCheckHook, - + pytest-xdist, + hypothesis, + pexpect, # Reverse dependency sage, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mpmath"; - version = "1.3.0"; - format = "setuptools"; + version = "1.4.1"; + pyproject = true; src = fetchFromGitHub { owner = "mpmath"; repo = "mpmath"; - tag = version; - hash = "sha256-9BGcaC3TyolGeO65/H42T/WQY6z5vc1h+MA+8MGFChU="; + tag = finalAttrs.version; + hash = "sha256-ykfKrpDri+4n9Y26S7nFl6nF0CV6V0A11ijmt8/apvg="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ + setuptools + setuptools-scm + ]; optional-dependencies = { gmpy = lib.optionals (!isPyPy) [ gmpy2 ]; @@ -33,7 +39,12 @@ buildPythonPackage rec { inherit sage; }; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-xdist + hypothesis + pexpect + ]; meta = { homepage = "https://mpmath.org/"; @@ -42,4 +53,4 @@ buildPythonPackage rec { maintainers = [ ]; platforms = lib.platforms.unix; }; -} +})