aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/ppscore/default.nix
blob: 3fd047402ee772ca2d74f6d859953df27cf823f5 (plain)
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
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pandas
, scikitlearn
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "ppscore";
  version = "1.1.1";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "8080labs";
    repo = pname;
    rev = version;
    sha256 = "11y6axhj0nlagf7ax6gas1g06krrmddb1jlmf0mmrmyi7z0vldk2";
  };

  checkInputs = [ pytestCheckHook ];

  propagatedBuildInputs = [
    pandas
    scikitlearn
  ];

  meta = with stdenv.lib; {
    description = "A Python implementation of the Predictive Power Score (PPS)";
    homepage = "https://github.com/8080labs/ppscore/";
    license = licenses.mit;
    maintainers = with maintainers; [ evax ];
  };
}