depot/third_party/nixpkgs/pkgs/development/python-modules/changefinder/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

46 lines
993 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
, numpy
, scipy
, statsmodels
}:
buildPythonPackage {
pname = "changefinder";
version = "unstable-2024-03-24";
pyproject = true;
src = fetchFromGitHub {
owner = "shunsukeaihara";
repo = "changefinder";
rev = "58c8c32f127b9e46f9823f36221f194bdb6f3f8b";
hash = "sha256-1If0gIsMU8673fKSSHVMvDgR1UnYgM/4HiyvZJ9T6VM=";
};
patches = [ ./fix_test_invocation.patch ];
build-system = [ setuptools ];
pythonRemoveDeps = [ "nose" ];
dependencies = [
numpy
scipy
statsmodels
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test/test.py" ];
pythonImportsCheck = [ "changefinder" ];
meta = with lib; {
description = "Online Change-Point Detection library based on ChangeFinder algorithm";
homepage = "https://github.com/shunsukeaihara/changefinder";
license = licenses.mit;
maintainers = with maintainers; [ raitobezarius ];
};
}