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