python312Packages.quantile-forest: init at 1.3.4

This commit is contained in:
Radik Islamov 2024-04-28 15:03:37 +05:00
parent be7b8e7367
commit 6005006365
No known key found for this signature in database
GPG Key ID: D0B0CBDAF7A902DC
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,62 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pythonOlder,
setuptools,
wheel,
cython,
numpy,
scipy,
scikit-learn,
}:
buildPythonPackage rec {
pname = "quantile-forest";
version = "1.3.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "zillow";
repo = "quantile-forest";
rev = "refs/tags/v${version}";
hash = "sha256-hzLJq0y+qjc48PfHW3i73x9safGOy0V1HEQ5WR8IXpI=";
};
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 ];
};
}

View File

@ -12865,6 +12865,8 @@ self: super: with self; {
quandl = callPackage ../development/python-modules/quandl { };
quantile-forest = callPackage ../development/python-modules/quantile-forest { };
quantities = callPackage ../development/python-modules/quantities { };
quantiphy = callPackage ../development/python-modules/quantiphy { };