Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
855 B · 45 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ 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"; tag = version; hash = "sha256-9BGcaC3TyolGeO65/H42T/WQY6z5vc1h+MA+8MGFChU="; };
nativeBuildInputs = [ setuptools ];
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; };}