depot/third_party/nixpkgs/pkgs/development/python-modules/graspy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

52 lines
950 B
Nix

{ 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 ];
};
}