about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mpmath/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/mpmath/default.nix')
-rw-r--r--pkgs/development/python-modules/mpmath/default.nix42
1 files changed, 22 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/mpmath/default.nix b/pkgs/development/python-modules/mpmath/default.nix
index 1a8e4c0309792..6f0f289e853b9 100644
--- a/pkgs/development/python-modules/mpmath/default.nix
+++ b/pkgs/development/python-modules/mpmath/default.nix
@@ -1,10 +1,14 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, gmpy2
-, isPyPy
-, setuptools
-, pytestCheckHook
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  gmpy2,
+  isPyPy,
+  setuptools,
+  pytestCheckHook,
+
+  # Reverse dependency
+  sage,
 }:
 
 buildPythonPackage rec {
@@ -19,25 +23,23 @@ buildPythonPackage rec {
     hash = "sha256-9BGcaC3TyolGeO65/H42T/WQY6z5vc1h+MA+8MGFChU=";
   };
 
-  nativeBuildInputs = [
-    setuptools
-  ];
+  nativeBuildInputs = [ setuptools ];
 
   passthru.optional-dependencies = {
-    gmpy = lib.optionals (!isPyPy) [
-      gmpy2
-    ];
+    gmpy = lib.optionals (!isPyPy) [ gmpy2 ];
+  };
+
+  passthru.tests = {
+    inherit sage;
   };
 
-  nativeCheckInputs = [
-    pytestCheckHook
-  ];
+  nativeCheckInputs = [ pytestCheckHook ];
 
   meta = with lib; {
-    homepage    = "https://mpmath.org/";
-    description = "A pure-Python library for multiprecision floating arithmetic";
-    license     = licenses.bsd3;
+    homepage = "https://mpmath.org/";
+    description = "Pure-Python library for multiprecision floating arithmetic";
+    license = licenses.bsd3;
     maintainers = with maintainers; [ lovek323 ];
-    platforms   = platforms.unix;
+    platforms = platforms.unix;
   };
 }