From b2a36cb64d7b0b97c128eaa1ebaf88121f79e4eb Mon Sep 17 00:00:00 2001 From: Alex Epelde Date: Mon, 9 Feb 2026 17:18:27 -0500 Subject: [PATCH] python3Packages.spherogram: add checkPhase --- .../python-modules/spherogram/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/spherogram/default.nix b/pkgs/development/python-modules/spherogram/default.nix index e71af9540741..1589a8520e0f 100644 --- a/pkgs/development/python-modules/spherogram/default.nix +++ b/pkgs/development/python-modules/spherogram/default.nix @@ -1,14 +1,19 @@ { lib, - buildPythonPackage, fetchFromGitHub, + python, + buildPythonPackage, + + # build-time dependencies setuptools, cython, - networkx, + + # runtime dependencies decorator, knot-floer-homology, - snappy-manifolds, + networkx, snappy-15-knots, + snappy-manifolds, }: buildPythonPackage rec { @@ -39,6 +44,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "spherogram" ]; + checkPhase = '' + runHook preCheck + ${python.interpreter} -m spherogram.test + runHook postCheck + ''; + meta = { description = "Spherical diagrams for 3-manifold topology"; homepage = "https://snappy.computop.org/spherogram.html";