at 22.05-pre 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, cmake 4, fetchPypi 5, isPy3k 6, pytest 7, pytest-pylint 8, nbconvert 9, joblib 10, jupyter-client 11, numpy 12, scipy 13, pandas 14, matplotlib 15, ninja 16, numba 17, pybind11 18}: 19 20buildPythonPackage rec { 21 pname = "phik"; 22 version = "0.12.0"; 23 disabled = !isPy3k; 24 25 src = fetchPypi { 26 inherit pname version; 27 sha256 = "959fd40482246e3f643cdac5ea04135b2c11a487e917af7d4e75843f47183549"; 28 }; 29 30 checkInputs = [ 31 pytest 32 pytest-pylint 33 nbconvert 34 jupyter-client 35 ]; 36 37 propagatedBuildInputs = [ 38 joblib 39 numpy 40 scipy 41 pandas 42 matplotlib 43 numba 44 pybind11 45 ]; 46 47 # uses setuptools to drive build process 48 dontUseCmakeConfigure = true; 49 50 nativeBuildInputs = [ 51 cmake 52 ninja 53 ]; 54 55 postInstall = '' 56 rm -r $out/bin 57 ''; 58 59 meta = with lib; { 60 description = "Phi_K correlation analyzer library"; 61 longDescription = "Phi_K is a new and practical correlation coefficient based on several refinements to Pearsons hypothesis test of independence of two variables."; 62 homepage = "https://phik.readthedocs.io/en/latest/"; 63 maintainers = with maintainers; [ melsigl ]; 64 license = licenses.asl20; 65 }; 66}