python3Packages.diofant fix build; python3Packages.mpmath: 1.3.0 -> 1.4.1 (#502465)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-05 23:39:42 +00:00
committed by GitHub
2 changed files with 20 additions and 19 deletions
@@ -3,14 +3,12 @@
buildPythonPackage,
cython,
fetchFromGitHub,
fetchpatch,
gmpy2,
hypothesis,
mpmath,
numpy,
pexpect,
pytest-cov-stub,
pytest-timeout,
pytest-xdist,
pytestCheckHook,
scipy,
@@ -29,14 +27,6 @@ buildPythonPackage rec {
hash = "sha256-uQvAYSURDhuAKcX0WVMk4y2ZXiiq0lPZct/7A5n5t34=";
};
patches = [
(fetchpatch {
name = "remove-pip-from-build-dependencies.patch";
url = "https://github.com/diofant/diofant/commit/117e441808faa7c785ccb81bf211772d60ebdec3.patch";
hash = "sha256-MYk1Ku4F3hAv7+jJQLWhXd8qyKRX+QYuBzPfYWT0VbU=";
})
];
build-system = [ setuptools-scm ];
dependencies = [ mpmath ];
@@ -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;
};
}
})