Files
nixpkgs/pkgs/development/python-modules/gmpy2/default.nix
T
Martin Weinelt 0e090dbc24 python3Packages.gmpy2: 2.2.1 -> 2.2.2
This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:10 +01:00

66 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
isPyPy,
setuptools,
gmp,
mpfr,
libmpc,
pytestCheckHook,
hypothesis,
cython,
mpmath,
# Reverse dependency
sage,
}:
buildPythonPackage (finalAttrs: {
pname = "gmpy2";
version = "2.2.2";
pyproject = true;
disabled = isPyPy;
src = fetchFromGitHub {
owner = "aleaxit";
repo = "gmpy";
tag = "v${finalAttrs.version}";
hash = "sha256-joeHec/d82sovfASCU3nlNL6SaThnS/XYPqujiZ9h8s=";
};
build-system = [ setuptools ];
buildInputs = [
gmp
mpfr
libmpc
];
# make relative imports in tests work properly
preCheck = ''
rm gmpy2 -r
'';
nativeCheckInputs = [
pytestCheckHook
hypothesis
cython
mpmath
];
pythonImportsCheck = [ "gmpy2" ];
passthru.tests = {
inherit sage;
};
meta = {
changelog = "https://github.com/aleaxit/gmpy/blob/${finalAttrs.src.rev}/docs/history.rst";
description = "Interface to GMP, MPFR, and MPC for Python 3.7+";
homepage = "https://github.com/aleaxit/gmpy/";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ tomasajt ];
};
})