at master 957 B view raw
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 tag = version; 23 hash = "sha256-gJStsL8fN17kvXO8EH/NHGIBelPknJzYw5WEvHsFooU="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 ]; 29 30 propagatedBuildInputs = [ 31 pandas 32 scikit-learn 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonRelaxDeps = [ "pandas" ]; 38 39 pythonImportsCheck = [ "ppscore" ]; 40 41 meta = with lib; { 42 description = "Python implementation of the Predictive Power Score (PPS)"; 43 homepage = "https://github.com/8080labs/ppscore/"; 44 changelog = "https://github.com/8080labs/ppscore/blob/${src.rev}/CHANGELOG.md"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ evax ]; 47 }; 48}