1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pandas,
7 pytestCheckHook,
8 pythonOlder,
9 scikit-learn,
10}:
11
12buildPythonPackage rec {
13 pname = "ppscore";
14 version = "1.3.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "8080labs";
21 repo = "ppscore";
22 rev = "refs/tags/${version}";
23 hash = "sha256-gJStsL8fN17kvXO8EH/NHGIBelPknJzYw5WEvHsFooU=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 pandas
30 scikit-learn
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "ppscore" ];
36
37 meta = with lib; {
38 description = "Python implementation of the Predictive Power Score (PPS)";
39 homepage = "https://github.com/8080labs/ppscore/";
40 changelog = "https://github.com/8080labs/ppscore/blob/${src.rev}/CHANGELOG.md";
41 license = licenses.mit;
42 maintainers = with maintainers; [ evax ];
43 };
44}