Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, pytestCheckHook 6, numpy 7, scipy 8, statsmodels 9}: 10 11buildPythonPackage { 12 pname = "changefinder"; 13 version = "unstable-2024-03-24"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "shunsukeaihara"; 18 repo = "changefinder"; 19 rev = "58c8c32f127b9e46f9823f36221f194bdb6f3f8b"; 20 hash = "sha256-1If0gIsMU8673fKSSHVMvDgR1UnYgM/4HiyvZJ9T6VM="; 21 }; 22 23 patches = [ ./fix_test_invocation.patch ]; 24 25 build-system = [ setuptools ]; 26 27 pythonRemoveDeps = [ "nose" ]; 28 29 dependencies = [ 30 numpy 31 scipy 32 statsmodels 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 pytestFlagsArray = [ "test/test.py" ]; 37 38 pythonImportsCheck = [ "changefinder" ]; 39 40 meta = with lib; { 41 description = "Online Change-Point Detection library based on ChangeFinder algorithm"; 42 homepage = "https://github.com/shunsukeaihara/changefinder"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ raitobezarius ]; 45 }; 46}