2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cython
|
|
, joblib
|
|
, numpy
|
|
, pandas
|
|
, scikit-learn
|
|
, scipy
|
|
, statsmodels
|
|
, urllib3
|
|
, pythonOlder
|
|
, python
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pmdarima";
|
|
version = "2.0.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alkaline-ml";
|
|
repo = "pmdarima";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-LHwPgQRB/vP3hBM8nqafoCrN3ZSRIMWLzqTqDOETOEc=";
|
|
};
|
|
|
|
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 = ''
|
|
cd $out/lib/${python.libPrefix}/site-packages
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
disabledTests= [
|
|
# touches internet
|
|
"test_load_from_web"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pmdarima" ];
|
|
|
|
meta = with lib; {
|
|
description = "A statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function";
|
|
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 ];
|
|
};
|
|
}
|