about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/hyppo/default.nix
blob: 5b2869e10d192198840c063aebd50b4530cff52d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, pytestCheckHook , pytestcov , numba
, numpy
, scikitlearn
, scipy
}:

buildPythonPackage rec {
  pname = "hyppo";
  version = "0.1.3";

  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "neurodata";
    repo = pname;
    rev = "v${version}";
    sha256 = "0qdnb1l4hz4dgwhapz1fp9sb2vxxvr8h2ngsbvyf50h3kapcn19r";
  };

  propagatedBuildInputs = [
    numba
    numpy
    scikitlearn
    scipy
  ];

  checkInputs = [ pytestCheckHook pytestcov ];
  pytestFlagsArray = [ "--ignore=docs" ];

  meta = with lib; {
    homepage = "https://github.com/neurodata/hyppo";
    description = "Indepedence testing in Python";
    license = licenses.asl20;
    maintainers = with maintainers; [ bcdarwin ];
  };
}