Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 50 lines 915 B view raw
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.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "5db2f7f65b1ad7b2cbfa254afb692ca0a91aeb686e82d6905838c41f516e6a13"; 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}