1{ lib
2, buildPythonPackage
3, isPy27
4, fetchFromGitHub
5, pytestCheckHook
6, pytestcov
7, hyppo
8, matplotlib
9, networkx
10, numpy
11, scikitlearn
12, scipy
13, seaborn
14}:
15
16buildPythonPackage rec {
17 pname = "graspy";
18 version = "0.3";
19
20 disabled = isPy27;
21
22 src = fetchFromGitHub {
23 owner = "neurodata";
24 repo = pname;
25 rev = "v${version}";
26 sha256 = "0lab76qiryxvwl6zrcikhnxil1xywl0wkkm2vzi4v9mdzpa7w29r";
27 };
28
29 propagatedBuildInputs = [
30 hyppo
31 matplotlib
32 networkx
33 numpy
34 scikitlearn
35 scipy
36 seaborn
37 ];
38
39 checkInputs = [ pytestCheckHook pytestcov ];
40 pytestFlagsArray = [ "tests" "--ignore=docs" ];
41 disabledTests = [ "gridplot_outputs" ];
42
43 meta = with lib; {
44 homepage = "https://graspy.neurodata.io";
45 description = "A package for graph statistical algorithms";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ bcdarwin ];
48 };
49}