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