2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cython,
|
|
|
|
joblib,
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
scikit-learn,
|
|
|
|
scipy,
|
|
|
|
statsmodels,
|
|
|
|
urllib3,
|
|
|
|
pythonOlder,
|
|
|
|
python,
|
|
|
|
pytest7CheckHook,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pmdarima";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.0.4";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alkaline-ml";
|
|
|
|
repo = "pmdarima";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-LHwPgQRB/vP3hBM8nqafoCrN3ZSRIMWLzqTqDOETOEc=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
joblib
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
statsmodels
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
# Make sure we're running the tests for the actually installed
|
|
|
|
# package, so that cython's compiled files are available.
|
|
|
|
preCheck = ''
|
2024-02-07 01:22:34 +00:00
|
|
|
cd $out/${python.sitePackages}
|
2023-10-09 19:29:22 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
matplotlib
|
|
|
|
pytest7CheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTests = [
|
2023-10-09 19:29:22 +00:00
|
|
|
# touches internet
|
|
|
|
"test_load_from_web"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pmdarima" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/alkaline-ml/pmdarima";
|
|
|
|
changelog = "https://github.com/alkaline-ml/pmdarima/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mbalatsko ];
|
|
|
|
};
|
|
|
|
}
|