1{ lib
2, buildPythonPackage
3, fetchPypi
4, scikitlearn
5, numpy
6, scipy
7, jinja2
8, pytest
9, networkx
10, matplotlib
11, python-igraph
12, plotly
13, ipywidgets
14}:
15
16buildPythonPackage rec {
17 pname = "kmapper";
18 version = "1.2.0";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "0879294680c5d01a928847b818a3c4e07eded3f602f96e510858e68e74fa3783";
23 };
24
25 propagatedBuildInputs = [
26 scikitlearn
27 numpy
28 scipy
29 jinja2
30 ];
31
32 checkInputs = [
33 pytest
34 networkx
35 matplotlib
36 python-igraph
37 plotly
38 ipywidgets
39 ];
40
41 checkPhase = ''
42 pytest test --ignore test/test_drawing.py
43 '';
44
45 meta = with lib; {
46 description = "Python implementation of Mapper algorithm for Topological Data Analysis";
47 homepage = https://kepler-mapper.scikit-tda.org/;
48 license = licenses.mit;
49 maintainers = [ maintainers.costrouc ];
50 };
51}