blob: f523ffce1c82d67dd0516331ec20988ae803e43b (
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
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonRelaxDepsHook,
setuptools,
pandas,
pytestCheckHook,
pythonOlder,
scikit-learn,
}:
buildPythonPackage rec {
pname = "ppscore";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "8080labs";
repo = "ppscore";
rev = "refs/tags/${version}";
hash = "sha256-gJStsL8fN17kvXO8EH/NHGIBelPknJzYw5WEvHsFooU=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [
pandas
scikit-learn
];
nativeCheckInputs = [ pytestCheckHook ];
pythonRelaxDeps = [ "pandas" ];
pythonImportsCheck = [ "ppscore" ];
meta = with lib; {
description = "Python implementation of the Predictive Power Score (PPS)";
homepage = "https://github.com/8080labs/ppscore/";
changelog = "https://github.com/8080labs/ppscore/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ evax ];
};
}
|