1{
2 lib,
3 buildPythonPackage,
4 isPy27,
5 fetchFromGitHub,
6 setuptools,
7 pytestCheckHook,
8 pytest-cov,
9 hyppo,
10 matplotlib,
11 networkx,
12 numpy,
13 scikit-learn,
14 scipy,
15 seaborn,
16}:
17
18buildPythonPackage rec {
19 pname = "graspologic";
20 version = "3.3.0";
21 pyproject = true;
22
23 disabled = isPy27;
24
25 src = fetchFromGitHub {
26 owner = "microsoft";
27 repo = "graspologic";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-hd3OyV95N8vhc4s50HbKkrcUOeSegn66Dkw7dixim00=";
30 };
31
32 nativeBuildInputs = [ setuptools ];
33
34 propagatedBuildInputs = [
35 hyppo
36 matplotlib
37 networkx
38 numpy
39 scikit-learn
40 scipy
41 seaborn
42 ];
43
44 nativeCheckInputs = [
45 pytestCheckHook
46 pytest-cov
47 ];
48 pytestFlagsArray = [
49 "tests"
50 "--ignore=docs"
51 "--ignore=tests/test_sklearn.py"
52 ];
53 disabledTests = [ "gridplot_outputs" ];
54
55 meta = with lib; {
56 homepage = "https://graspologic.readthedocs.io";
57 description = "A package for graph statistical algorithms";
58 license = licenses.asl20; # changing to `licenses.mit` in next release
59 maintainers = with maintainers; [ bcdarwin ];
60 # graspologic-native is not available
61 broken = true;
62 };
63}