Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 99 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100{ lib, buildPythonPackage, cmake, fetchFromGitHub, joblib, jupyter, jupyter-client, matplotlib, nbconvert, ninja, numba, numpy, pandas, pybind11, pytestCheckHook, pythonOlder, scikit-build, scipy, setuptools}:
buildPythonPackage rec { pname = "phik"; version = "0.12.3"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "KaveIO"; repo = "PhiK"; rev = "refs/tags/v${version}"; hash = "sha256-9o3EDhgmne2J1QfzjjNQc1mUcyCzoVrCnWXqjWkiZU0="; };
nativeBuildInputs = [ cmake ninja scikit-build setuptools ];
propagatedBuildInputs = [ joblib numpy scipy pandas matplotlib numba pybind11 ];
nativeCheckInputs = [ pytestCheckHook nbconvert jupyter jupyter-client ];
# Uses setuptools to drive build process dontUseCmakeConfigure = true;
pythonImportsCheck = [ "phik" ];
postInstall = '' rm -r $out/bin '';
preCheck = '' # import from $out rm -r phik '';
disabledTests = [ # TypeError: 'numpy.float64' object cannot be interpreted as an integer # https://github.com/KaveIO/PhiK/issues/73 "test_significance_matrix_hybrid" "test_significance_matrix_mc" ];
disabledTestPaths = [ # Don't test integrations "tests/phik_python/integration/" ];
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/"; changelog = "https://github.com/KaveIO/PhiK/blob/${version}/CHANGES.rst"; license = licenses.asl20; maintainers = with maintainers; [ melsigl ]; };}