about summary refs log tree commit diff
path: root/pkgs/development/python-modules/memory-allocator/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/memory-allocator/default.nix')
-rw-r--r--pkgs/development/python-modules/memory-allocator/default.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/memory-allocator/default.nix b/pkgs/development/python-modules/memory-allocator/default.nix
index c4ddc5d06a1b8..1dd2782396cfd 100644
--- a/pkgs/development/python-modules/memory-allocator/default.nix
+++ b/pkgs/development/python-modules/memory-allocator/default.nix
@@ -1,7 +1,11 @@
-{ lib
-, fetchPypi
-, buildPythonPackage
-, cython
+{
+  lib,
+  fetchPypi,
+  buildPythonPackage,
+  cython,
+
+  # Reverse dependency
+  sage,
 }:
 
 buildPythonPackage rec {
@@ -19,8 +23,12 @@ buildPythonPackage rec {
 
   pythonImportsCheck = [ "memory_allocator" ];
 
+  passthru.tests = {
+    inherit sage;
+  };
+
   meta = with lib; {
-    description = "An extension class to allocate memory easily with cython";
+    description = "Extension class to allocate memory easily with cython";
     homepage = "https://github.com/sagemath/memory_allocator/";
     maintainers = teams.sage.members;
     license = licenses.lgpl3Plus;