2020-04-24 23:36:52 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, buildPythonPackage
|
2021-10-11 16:52:03 +00:00
|
|
|
|
, cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, fetchPypi
|
|
|
|
|
, isPy3k
|
|
|
|
|
, pytest
|
|
|
|
|
, pytest-pylint
|
|
|
|
|
, nbconvert
|
2020-08-20 17:08:02 +00:00
|
|
|
|
, joblib
|
2021-10-28 06:52:43 +00:00
|
|
|
|
, jupyter-client
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, numpy
|
|
|
|
|
, scipy
|
|
|
|
|
, pandas
|
|
|
|
|
, matplotlib
|
2021-10-11 16:52:03 +00:00
|
|
|
|
, ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, numba
|
2021-10-11 16:52:03 +00:00
|
|
|
|
, pybind11
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "phik";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
version = "0.12.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-10-11 16:52:03 +00:00
|
|
|
|
inherit pname version;
|
|
|
|
|
sha256 = "959fd40482246e3f643cdac5ea04135b2c11a487e917af7d4e75843f47183549";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
|
pytest
|
|
|
|
|
pytest-pylint
|
|
|
|
|
nbconvert
|
2021-10-28 06:52:43 +00:00
|
|
|
|
jupyter-client
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
|
joblib
|
2020-04-24 23:36:52 +00:00
|
|
|
|
numpy
|
|
|
|
|
scipy
|
|
|
|
|
pandas
|
|
|
|
|
matplotlib
|
|
|
|
|
numba
|
2021-10-11 16:52:03 +00:00
|
|
|
|
pybind11
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# uses setuptools to drive build process
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
cmake
|
|
|
|
|
ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
|
rm -r $out/bin
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Phi_K correlation analyzer library";
|
|
|
|
|
longDescription = "Phi_K is a new and practical correlation coefficient based on several refinements to Pearson’s hypothesis test of independence of two variables.";
|
|
|
|
|
homepage = "https://phik.readthedocs.io/en/latest/";
|
|
|
|
|
maintainers = with maintainers; [ melsigl ];
|
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
};
|
|
|
|
|
}
|