python3Packages.kmapper: cleanup, fix

This commit is contained in:
Gaetan Lepage 2026-03-07 00:58:13 +00:00
parent c2f1b88ee8
commit 8ad1990cac

View file

@ -22,7 +22,7 @@
pytestCheckHook, pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage (finalAttrs: {
pname = "kmapper"; pname = "kmapper";
version = "2.1.0"; version = "2.1.0";
pyproject = true; pyproject = true;
@ -30,7 +30,7 @@ buildPythonPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "scikit-tda"; owner = "scikit-tda";
repo = "kepler-mapper"; repo = "kepler-mapper";
tag = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-i909J0yI8v8BqGbCkcjBAdA02Io+qpILdDkojZj0wv4="; hash = "sha256-i909J0yI8v8BqGbCkcjBAdA02Io+qpILdDkojZj0wv4=";
}; };
@ -55,11 +55,18 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
disabledTests = [
# UnboundLocalError: cannot access local variable 'X_blend' where it is not associated with a value
"test_tuple_projection"
"test_tuple_projection_fit"
];
meta = { meta = {
description = "Python implementation of Mapper algorithm for Topological Data Analysis"; description = "Python implementation of Mapper algorithm for Topological Data Analysis";
homepage = "https://kepler-mapper.scikit-tda.org/"; homepage = "https://kepler-mapper.scikit-tda.org/";
changelog = "https://github.com/scikit-tda/kepler-mapper/releases/tag/v${version}"; downloadPage = "https://github.com/scikit-tda/kepler-mapper";
changelog = "https://github.com/scikit-tda/kepler-mapper/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = [ ]; maintainers = [ ];
}; };
} })