2020-04-24 23:36:52 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, buildPythonPackage
|
2021-10-11 16:52:03 +00:00
|
|
|
|
, cmake
|
2022-06-16 17:23:12 +00:00
|
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
|
, joblib
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, matplotlib
|
2021-10-11 16:52:03 +00:00
|
|
|
|
, ninja
|
2024-01-02 11:29:13 +00:00
|
|
|
|
, numpy
|
|
|
|
|
, pandas
|
2024-05-15 15:35:15 +00:00
|
|
|
|
, pathspec
|
|
|
|
|
, pyproject-metadata
|
2021-10-11 16:52:03 +00:00
|
|
|
|
, pybind11
|
2024-01-02 11:29:13 +00:00
|
|
|
|
, pytestCheckHook
|
|
|
|
|
, pythonOlder
|
2024-05-15 15:35:15 +00:00
|
|
|
|
, scikit-build-core
|
2024-01-02 11:29:13 +00:00
|
|
|
|
, scipy
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "phik";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
version = "0.12.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
pyproject = true;
|
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "KaveIO";
|
|
|
|
|
repo = "PhiK";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
hash = "sha256-YsH7vVn6gzejunUjUY/RIcvWtaQ/W1gbciJWKi5LDTk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
build-system = [
|
2024-01-02 11:29:13 +00:00
|
|
|
|
cmake
|
|
|
|
|
ninja
|
2024-05-15 15:35:15 +00:00
|
|
|
|
pathspec
|
|
|
|
|
pybind11
|
|
|
|
|
pyproject-metadata
|
|
|
|
|
scikit-build-core
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
dependencies = [
|
2020-08-20 17:08:02 +00:00
|
|
|
|
joblib
|
2024-05-15 15:35:15 +00:00
|
|
|
|
matplotlib
|
2020-04-24 23:36:52 +00:00
|
|
|
|
numpy
|
|
|
|
|
pandas
|
2024-05-15 15:35:15 +00:00
|
|
|
|
scipy
|
2021-10-11 16:52:03 +00:00
|
|
|
|
];
|
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
|
nativeCheckInputs = [
|
|
|
|
|
pytestCheckHook
|
|
|
|
|
];
|
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
|
# Uses scikit-build-core to drive build process
|
2021-10-11 16:52:03 +00:00
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
|
pythonImportsCheck = [
|
|
|
|
|
"phik"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
|
preCheck = ''
|
|
|
|
|
# import from $out
|
|
|
|
|
rm -r phik
|
2020-04-24 23:36:52 +00:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Phi_K correlation analyzer library";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
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/";
|
|
|
|
|
changelog = "https://github.com/KaveIO/PhiK/blob/${version}/CHANGES.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
license = licenses.asl20;
|
2024-01-02 11:29:13 +00:00
|
|
|
|
maintainers = with maintainers; [ melsigl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
}
|