Merge pull request #257421 from mbalatsko/init-tbats

python3Packages.tbats: init at 1.1.3
This commit is contained in:
OTABI Tomoya 2023-10-02 19:04:45 +09:00 committed by GitHub
commit ef8b52c674
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, numpy
, pmdarima
, scikit-learn
, scipy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "tbats";
version = "1.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "intive-DataScience";
repo = "tbats";
rev = version;
hash = "sha256-f6QqDq/ffbnFBZRAT6KQRlqvZZSE+Pff2/o+htVabZI=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
numpy
pmdarima
scikit-learn
scipy
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [
# test_R folder is just for comparison of results with R lib
# we need only test folder
"test/"
# several tests has same name, so we use --deselect instead of disableTests
# Test execution is too long > 15 min
"--deselect=test/tbats/TBATS_test.py::TestTBATS::test_fit_predict_trigonometric_seasonal"
];
pythonImportsCheck = [ "tbats" ];
meta = with lib; {
description = "BATS and TBATS forecasting methods";
homepage = "https://github.com/intive-DataScience/tbats";
changelog = "https://github.com/intive-DataScience/tbats/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ mbalatsko ];
};
}

View file

@ -12782,6 +12782,8 @@ self: super: with self; {
taxi = callPackage ../development/python-modules/taxi { }; taxi = callPackage ../development/python-modules/taxi { };
tbats = callPackage ../development/python-modules/tbats { };
tblib = callPackage ../development/python-modules/tblib { }; tblib = callPackage ../development/python-modules/tblib { };
tblite = callPackage ../development/libraries/science/chemistry/tblite/python.nix { tblite = callPackage ../development/libraries/science/chemistry/tblite/python.nix {