2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
, pandas
|
|
|
|
, dask
|
|
|
|
, distributed
|
|
|
|
, coverage
|
|
|
|
, flake8
|
|
|
|
, black
|
|
|
|
, pytest
|
|
|
|
, codecov
|
|
|
|
}:
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "stumpy";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "1.10.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TDAmeritrade";
|
|
|
|
repo = "stumpy";
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "1v17lxqgvkd3n33c2y1j1zy74xy92vsx2l89yhan89msnnb7aafr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pandas
|
|
|
|
dask
|
|
|
|
distributed
|
|
|
|
coverage
|
|
|
|
flake8
|
|
|
|
black
|
|
|
|
pytest
|
|
|
|
codecov
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
# ignore changed numpy operations
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
2020-08-20 17:08:02 +00:00
|
|
|
pytest -k 'not allc'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A powerful and scalable library that can be used for a variety of time series data mining tasks";
|
|
|
|
homepage = "https://github.com/TDAmeritrade/stumpy";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|