pythonPackages.ripser: init at 0.3.2

This commit is contained in:
Chris Ostrouchov 2019-07-12 20:35:14 -04:00 committed by Frederik Rietdijk
parent aaf1da8e68
commit e72d2b6716
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ lib
, buildPythonPackage
, fetchPypi
, cython
, numpy
, scipy
, scikitlearn
, persim
, pytest
}:
buildPythonPackage rec {
pname = "ripser";
version = "0.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "ff9f50fba911f0e9212077b78014f83e30c97526194dd6bd1df3d81896e6cb58";
};
checkInputs = [
pytest
];
propagatedBuildInputs = [
cython
numpy
scipy
scikitlearn
persim
];
checkPhase = ''
# specifically needed for darwin
export HOME=$(mktemp -d)
mkdir -p $HOME/.matplotlib
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
pytest
'';
meta = with lib; {
description = "A Lean Persistent Homology Library for Python";
homepage = https://ripser.scikit-tda.org;
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -4314,6 +4314,8 @@ in {
python2 = python;
}));
ripser = callPackage ../development/python-modules/ripser { };
rjsmin = callPackage ../development/python-modules/rjsmin { };
pysolr = callPackage ../development/python-modules/pysolr { };