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