2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchFromGitHub
|
2020-09-25 04:45:31 +00:00
|
|
|
, pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-09-25 04:45:31 +00:00
|
|
|
, hyppo
|
2020-04-24 23:36:52 +00:00
|
|
|
, matplotlib
|
|
|
|
, networkx
|
|
|
|
, numpy
|
2021-05-20 23:08:51 +00:00
|
|
|
, scikit-learn
|
2020-04-24 23:36:52 +00:00
|
|
|
, scipy
|
|
|
|
, seaborn
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-10-27 00:29:36 +00:00
|
|
|
pname = "graspologic";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-27 00:29:36 +00:00
|
|
|
owner = "microsoft";
|
|
|
|
repo = "graspologic";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-yXhEI/8qm526D+Ehqqfb+j+sbbh83Q4OWC+UM7cgCjU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-09-25 04:45:31 +00:00
|
|
|
hyppo
|
2020-04-24 23:36:52 +00:00
|
|
|
matplotlib
|
|
|
|
networkx
|
|
|
|
numpy
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
2020-04-24 23:36:52 +00:00
|
|
|
scipy
|
|
|
|
seaborn
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook pytest-cov ];
|
2021-02-17 17:02:09 +00:00
|
|
|
pytestFlagsArray = [ "tests" "--ignore=docs" "--ignore=tests/test_sklearn.py" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
disabledTests = [ "gridplot_outputs" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-10-07 14:46:35 +00:00
|
|
|
homepage = "https://graspologic.readthedocs.io";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A package for graph statistical algorithms";
|
2020-10-27 00:29:36 +00:00
|
|
|
license = licenses.asl20; # changing to `licenses.mit` in next release
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
2022-06-16 17:23:12 +00:00
|
|
|
# graspologic-native is not available
|
|
|
|
broken = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|