pythonPackages.ripser: init at 0.3.2
This commit is contained in:
parent
aaf1da8e68
commit
e72d2b6716
48
pkgs/development/python-modules/ripser/default.nix
Normal file
48
pkgs/development/python-modules/ripser/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4314,6 +4314,8 @@ in {
|
||||||
python2 = python;
|
python2 = python;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
ripser = callPackage ../development/python-modules/ripser { };
|
||||||
|
|
||||||
rjsmin = callPackage ../development/python-modules/rjsmin { };
|
rjsmin = callPackage ../development/python-modules/rjsmin { };
|
||||||
|
|
||||||
pysolr = callPackage ../development/python-modules/pysolr { };
|
pysolr = callPackage ../development/python-modules/pysolr { };
|
||||||
|
|
Loading…
Reference in a new issue