2019-07-14 22:39:12 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
, pandas
|
|
|
|
, dask
|
|
|
|
, distributed
|
|
|
|
, coverage
|
|
|
|
, flake8
|
|
|
|
, black
|
|
|
|
, pytest
|
|
|
|
, codecov
|
|
|
|
}:
|
|
|
|
|
2020-08-07 22:16:24 +01:00
|
|
|
buildPythonPackage rec {
|
2019-07-14 22:39:12 +01:00
|
|
|
pname = "stumpy";
|
2020-08-07 22:16:24 +01:00
|
|
|
version = "1.4";
|
2019-07-14 22:39:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "TDAmeritrade";
|
|
|
|
repo = "stumpy";
|
2020-08-07 22:16:24 +01:00
|
|
|
rev = "v${version}";
|
2019-07-14 22:39:12 +01:00
|
|
|
sha256 = "0s2s3y855jjwdb7p55zx8lknplz58ghpw547yzmqisacr968b67w";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pandas
|
|
|
|
dask
|
|
|
|
distributed
|
|
|
|
coverage
|
|
|
|
flake8
|
|
|
|
black
|
|
|
|
pytest
|
|
|
|
codecov
|
|
|
|
];
|
|
|
|
|
2020-08-07 22:16:24 +01:00
|
|
|
# ignore changed numpy operations
|
2019-07-14 22:39:12 +01:00
|
|
|
checkPhase = ''
|
2020-08-07 22:16:24 +01:00
|
|
|
pytest -k 'not allc'
|
2019-07-14 22:39:12 +01: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 02:11:51 +01:00
|
|
|
homepage = "https://github.com/TDAmeritrade/stumpy";
|
2019-07-14 22:39:12 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|