2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
|
|
|
cython,
|
|
|
|
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
scikit-learn,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "quantile-forest";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.3.6";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zillow";
|
|
|
|
repo = "quantile-forest";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-cYi4idA6gcUd/aVMlIwlCB/jdKpxZtc6xQEhxNSY08Y=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
cython
|
|
|
|
wheel
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
scikit-learn
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
scikit-learn
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -rf $out/${python.sitePackages}/examples
|
|
|
|
'';
|
|
|
|
|
|
|
|
# need network connection
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "quantile_forest" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Quantile Regression Forests compatible with scikit-learn";
|
|
|
|
homepage = "https://github.com/zillow/quantile-forest";
|
|
|
|
changelog = "https://github.com/zillow/quantile-forest/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ vizid ];
|
|
|
|
};
|
|
|
|
}
|