nixpkgs/pkgs/development/python-modules/graspologic/default.nix

50 lines
990 B
Nix
Raw Normal View History

2020-04-01 00:17:55 +00:00
{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
2020-09-10 19:14:42 +00:00
, pytestCheckHook
, pytest-cov
2020-09-10 19:14:42 +00:00
, hyppo
2020-04-01 00:17:55 +00:00
, matplotlib
, networkx
, numpy
, scikit-learn
2020-04-01 00:17:55 +00:00
, scipy
, seaborn
}:
buildPythonPackage rec {
2020-09-30 16:25:54 +00:00
pname = "graspologic";
2020-09-10 19:14:42 +00:00
version = "0.3";
2020-04-01 00:17:55 +00:00
disabled = isPy27;
src = fetchFromGitHub {
2020-09-30 16:25:54 +00:00
owner = "microsoft";
repo = "graspologic";
2020-04-01 00:17:55 +00:00
rev = "v${version}";
2020-09-10 19:14:42 +00:00
sha256 = "0lab76qiryxvwl6zrcikhnxil1xywl0wkkm2vzi4v9mdzpa7w29r";
2020-04-01 00:17:55 +00:00
};
propagatedBuildInputs = [
2020-09-10 19:14:42 +00:00
hyppo
2020-04-01 00:17:55 +00:00
matplotlib
networkx
numpy
scikit-learn
2020-04-01 00:17:55 +00:00
scipy
seaborn
];
checkInputs = [ pytestCheckHook pytest-cov ];
pytestFlagsArray = [ "tests" "--ignore=docs" "--ignore=tests/test_sklearn.py" ];
2020-09-10 19:14:42 +00:00
disabledTests = [ "gridplot_outputs" ];
2020-04-01 00:17:55 +00:00
meta = with lib; {
homepage = "https://graspy.neurodata.io";
description = "A package for graph statistical algorithms";
2020-09-30 16:25:54 +00:00
license = licenses.asl20; # changing to `licenses.mit` in next release
2020-04-01 00:17:55 +00:00
maintainers = with maintainers; [ bcdarwin ];
};
}