Files
nixpkgs/pkgs/development/python-modules/mpmath/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

46 lines
879 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
gmpy2,
isPyPy,
setuptools,
pytestCheckHook,
# Reverse dependency
sage,
}:
buildPythonPackage rec {
pname = "mpmath";
version = "1.3.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "mpmath";
repo = "mpmath";
rev = "refs/tags/${version}";
hash = "sha256-9BGcaC3TyolGeO65/H42T/WQY6z5vc1h+MA+8MGFChU=";
};
nativeBuildInputs = [ setuptools ];
passthru.optional-dependencies = {
gmpy = lib.optionals (!isPyPy) [ gmpy2 ];
};
passthru.tests = {
inherit sage;
};
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://mpmath.org/";
description = "Pure-Python library for multiprecision floating arithmetic";
license = licenses.bsd3;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
}