Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1c4b13bb5b24
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 91d5b3f07d27
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Oct 21, 2019

  1. pythonPackages.phik: init at 0.9.8

    melsigl authored and Jon committed Oct 21, 2019
    Copy the full SHA
    91d5b3f View commit details
Showing with 56 additions and 0 deletions.
  1. +54 −0 pkgs/development/python-modules/phik/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
54 changes: 54 additions & 0 deletions pkgs/development/python-modules/phik/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytest
, pytest-pylint
, nbconvert
, jupyter_client
, numpy
, scipy
, pandas
, matplotlib
, numba
}:

buildPythonPackage rec {
pname = "phik";
version = "0.9.8";
format = "wheel";
disabled = !isPy3k;

src = fetchPypi {
inherit pname version format;
python = "py3";
sha256 = "c398452c5c1eea153905666b289c6a153712cf3d58811fa41e2bbbd27a65d678";
};

checkInputs = [
pytest
pytest-pylint
nbconvert
jupyter_client
];

propagatedBuildInputs = [
numpy
scipy
pandas
matplotlib
numba
];

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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -848,6 +848,8 @@ in {

phonopy = callPackage ../development/python-modules/phonopy { };

phik = callPackage ../development/python-modules/phik {};

piccata = callPackage ../development/python-modules/piccata {};

pims = callPackage ../development/python-modules/pims { };