Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / tbats / default.nix
blob8976fef859d3432669887910e13d05c84a023af9
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , numpy
6 , pmdarima
7 , scikit-learn
8 , scipy
9 , pytestCheckHook
12 buildPythonPackage rec {
13   pname = "tbats";
14   version = "1.1.3";
15   pyproject = true;
17   src = fetchFromGitHub {
18     owner = "intive-DataScience";
19     repo = "tbats";
20     rev = version;
21     hash = "sha256-f6QqDq/ffbnFBZRAT6KQRlqvZZSE+Pff2/o+htVabZI=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   propagatedBuildInputs = [
29     numpy
30     pmdarima
31     scikit-learn
32     scipy
33   ];
35   nativeCheckInputs = [ pytestCheckHook ];
36   pytestFlagsArray = [
37     # test_R folder is just for comparison of results with R lib
38     # we need only test folder
39     "test/"
41     # several tests has same name, so we use --deselect instead of disableTests
43     # Test execution is too long > 15 min
44     "--deselect=test/tbats/TBATS_test.py::TestTBATS::test_fit_predict_trigonometric_seasonal"
45   ];
47   pythonImportsCheck = [ "tbats" ];
49   meta = with lib; {
50     description = "BATS and TBATS forecasting methods";
51     homepage = "https://github.com/intive-DataScience/tbats";
52     changelog = "https://github.com/intive-DataScience/tbats/releases/tag/${src.rev}";
53     license = licenses.mit;
54     maintainers = with maintainers; [ mbalatsko ];
55   };