2019-07-14 21:39:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
, pandas
|
|
|
|
, dask
|
|
|
|
, distributed
|
|
|
|
, coverage
|
|
|
|
, flake8
|
|
|
|
, black
|
|
|
|
, pytest
|
|
|
|
, codecov
|
|
|
|
}:
|
|
|
|
|
2020-08-07 21:16:24 +00:00
|
|
|
buildPythonPackage rec {
|
2019-07-14 21:39:12 +00:00
|
|
|
pname = "stumpy";
|
2020-08-07 21:16:24 +00:00
|
|
|
version = "1.4";
|
2019-07-14 21:39:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TDAmeritrade";
|
|
|
|
repo = "stumpy";
|
2020-08-07 21:16:24 +00:00
|
|
|
rev = "v${version}";
|
2019-07-14 21:39:12 +00:00
|
|
|
sha256 = "0s2s3y855jjwdb7p55zx8lknplz58ghpw547yzmqisacr968b67w";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pandas
|
|
|
|
dask
|
|
|
|
distributed
|
|
|
|
coverage
|
|
|
|
flake8
|
|
|
|
black
|
|
|
|
pytest
|
|
|
|
codecov
|
|
|
|
];
|
|
|
|
|
2020-08-07 21:16:24 +00:00
|
|
|
# ignore changed numpy operations
|
2019-07-14 21:39:12 +00:00
|
|
|
checkPhase = ''
|
2020-08-07 21:16:24 +00:00
|
|
|
pytest -k 'not allc'
|
2019-07-14 21:39:12 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A powerful and scalable library that can be used for a variety of time series data mining tasks";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/TDAmeritrade/stumpy";
|
2019-07-14 21:39:12 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|