anchor.diff:  { lib
   , buildPythonPackage
   , cmake
  -, fetchPypi
  +, fetchFromGitHub
   , isPy3k
  -, pytest
  -, pytest-pylint
  +, pytestCheckHook
   , nbconvert
   , joblib
  +, jupyter
   , jupyter-client
   , numpy
   , scipy
  
positive.code:     scikit-build
    ];
  
    pythonImportCheck = [ "phik" ];
  
    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;
    };
  
negative.code:   disabled = !isPy3k;
    format = "pyproject";
  
    src = fetchFromGitHub {
      owner = "KaveIO";
      repo = "PhiK";
      rev = "v${version}";
      hash = "sha256-nr3804MLIBPFw/PlJ9B8xKFFGI5LDp8m2gLtJB7YcEE=";
    };
  
    checkInputs = [
      pytestCheckHook
      nbconvert
      jupyter
      jupyter-client
    ];
  
  