1{ lib 2, buildPythonPackage 3, fetchPypi 4, deprecated 5, hopcroftkarp 6, joblib 7, matplotlib 8, numpy 9, scikit-learn 10, scipy 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "persim"; 16 version = "0.3.1"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "ef0f0a247adcf6104ecac14117db0b24581710ea8a8d964816805395700b4975"; 21 }; 22 23 propagatedBuildInputs = [ 24 deprecated 25 hopcroftkarp 26 joblib 27 matplotlib 28 numpy 29 scikit-learn 30 scipy 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 ]; 36 37 preCheck = '' 38 # specifically needed for darwin 39 export HOME=$(mktemp -d) 40 mkdir -p $HOME/.matplotlib 41 echo "backend: ps" > $HOME/.matplotlib/matplotlibrc 42 ''; 43 44 meta = with lib; { 45 description = "Distances and representations of persistence diagrams"; 46 homepage = "https://persim.scikit-tda.org"; 47 license = licenses.mit; 48 maintainers = [ maintainers.costrouc ]; 49 }; 50}