nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 71 lines 1.3 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, scikit-build 19}: 20 21buildPythonPackage rec { 22 pname = "phik"; 23 version = "0.12.2"; 24 disabled = !isPy3k; 25 format = "pyproject"; 26 27 src = fetchPypi { 28 inherit pname version; 29 sha256 = "sha256-sGdOuCnSMpBDP3GNI2ASK+gEsXDMyAetnZqNHBOYVTM="; 30 }; 31 32 checkInputs = [ 33 pytest 34 pytest-pylint 35 nbconvert 36 jupyter-client 37 ]; 38 39 propagatedBuildInputs = [ 40 joblib 41 numpy 42 scipy 43 pandas 44 matplotlib 45 numba 46 pybind11 47 ]; 48 49 # uses setuptools to drive build process 50 dontUseCmakeConfigure = true; 51 52 nativeBuildInputs = [ 53 cmake 54 ninja 55 scikit-build 56 ]; 57 58 pythonImportCheck = [ "phik" ]; 59 60 postInstall = '' 61 rm -r $out/bin 62 ''; 63 64 meta = with lib; { 65 description = "Phi_K correlation analyzer library"; 66 longDescription = "Phi_K is a new and practical correlation coefficient based on several refinements to Pearsons hypothesis test of independence of two variables."; 67 homepage = "https://phik.readthedocs.io/en/latest/"; 68 maintainers = with maintainers; [ melsigl ]; 69 license = licenses.asl20; 70 }; 71}