1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 numpy,
7 scipy,
8 matplotlib,
9 pytestCheckHook,
10 pytest-cov-stub,
11}:
12
13buildPythonPackage rec {
14 pname = "kneed";
15 version = "0.8.5";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "arvkevi";
20 repo = "kneed";
21 tag = "v${version}";
22 sha256 = "sha256-oakP6NkdvTzMZcoXS6cKNsRo//K+CoPLlhvbQLGij00=";
23 };
24
25 build-system = [ hatchling ];
26
27 dependencies = [
28 numpy
29 scipy
30 ];
31
32 checkInputs = [
33 pytestCheckHook
34 pytest-cov-stub
35 matplotlib
36 ];
37
38 disabledTestPaths = [
39 # Fails when matplotlib is installed
40 "tests/test_no_matplotlib.py"
41 ];
42
43 meta = with lib; {
44 description = "Knee point detection in Python";
45 homepage = "https://github.com/arvkevi/kneed";
46 license = licenses.bsd3;
47 maintainers = with maintainers; [ tm-drtina ];
48 };
49}