python3Packages.spherogram: add checkPhase

This commit is contained in:
Alex Epelde
2026-03-22 16:08:26 -04:00
parent 97b62f92c8
commit b2a36cb64d
@@ -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";