depot/third_party/nixpkgs/pkgs/development/python-modules/stumpy/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

56 lines
932 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, scipy
, numba
, pandas
, dask
, distributed
, coverage
, flake8
, black
, pytest
, codecov
}:
buildPythonPackage rec {
pname = "stumpy";
version = "1.4";
src = fetchFromGitHub {
owner = "TDAmeritrade";
repo = "stumpy";
rev = "v${version}";
sha256 = "0s2s3y855jjwdb7p55zx8lknplz58ghpw547yzmqisacr968b67w";
};
propagatedBuildInputs = [
numpy
scipy
numba
];
checkInputs = [
pandas
dask
distributed
coverage
flake8
black
pytest
codecov
];
# ignore changed numpy operations
checkPhase = ''
pytest -k 'not allc'
'';
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 ];
};
}