3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.graspy: init at 0.2

This commit is contained in:
Ben Darwin 2020-03-31 20:17:55 -04:00 committed by Jon
parent d8a7d04a29
commit 0dd910d470
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, pytest
, pytestcov
, matplotlib
, networkx
, numpy
, scikitlearn
, scipy
, seaborn
}:
buildPythonPackage rec {
pname = "graspy";
version = "0.2";
disabled = isPy27;
src = fetchFromGitHub {
owner = "neurodata";
repo = pname;
rev = "v${version}";
sha256 = "1ss7d71lwblimg7ri88ir9w59j0ri13wl75091hjf7q0mchqr6yd";
};
propagatedBuildInputs = [
matplotlib
networkx
numpy
scikitlearn
scipy
seaborn
];
checkInputs = [ pytest pytestcov ];
checkPhase = ''
runHook preCheck
# `test_autogmm` takes too long; fixed in next release (graspy/pull/328)
pytest tests -k 'not test_autogmm'
runHook postCheck
'';
meta = with lib; {
homepage = "https://graspy.neurodata.io";
description = "A package for graph statistical algorithms";
license = licenses.asl20;
maintainers = with maintainers; [ bcdarwin ];
};
}

View file

@ -6490,6 +6490,8 @@ in {
graph_nets = callPackage ../development/python-modules/graph_nets { };
graspy = callPackage ../development/python-modules/graspy { };
influxgraph = callPackage ../development/python-modules/influxgraph { };
pyspotify = callPackage ../development/python-modules/pyspotify { };