Files
2026-03-25 20:09:23 +00:00

50 lines
862 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
numpy,
scipy,
matplotlib,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "kneed";
version = "0.8.6";
pyproject = true;
src = fetchFromGitHub {
owner = "arvkevi";
repo = "kneed";
tag = "v${version}";
sha256 = "sha256-A9d5igX9Eqr3rgx93VMee9yFEs6WfO0bb/eCEFCxUJg=";
};
build-system = [ hatchling ];
dependencies = [
numpy
scipy
];
checkInputs = [
pytestCheckHook
pytest-cov-stub
matplotlib
];
disabledTestPaths = [
# Fails when matplotlib is installed
"tests/test_no_matplotlib.py"
];
meta = {
description = "Knee point detection in Python";
homepage = "https://github.com/arvkevi/kneed";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ tm-drtina ];
};
}