Merge pull request #232086 from tm-drtina/python-kneed

This commit is contained in:
Sandro 2023-06-06 14:10:10 +02:00 committed by GitHub
commit 7b85b3a362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, numpy
, scipy
, matplotlib
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "kneed";
version = "0.8.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "arvkevi";
repo = "kneed";
rev = "v${version}";
sha256 = "K742mOnwTUY09EtbDYM9guqszK1wxgkofPhSjDyB8Ss=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=kneed" ""
'';
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
numpy
scipy
];
checkInputs = [
pytestCheckHook
matplotlib
];
disabledTestPaths = [
# Fails when matplotlib is installed
"tests/test_no_matplotlib.py"
];
meta = with lib; {
description = "Knee point detection in Python";
homepage = "https://github.com/arvkevi/kneed";
license = licenses.bsd3;
maintainers = with maintainers; [ tm-drtina ];
};
}

View file

@ -5493,6 +5493,8 @@ self: super: with self; {
knack = callPackage ../development/python-modules/knack { }; knack = callPackage ../development/python-modules/knack { };
kneed = callPackage ../development/python-modules/kneed { };
kombu = callPackage ../development/python-modules/kombu { }; kombu = callPackage ../development/python-modules/kombu { };
konnected = callPackage ../development/python-modules/konnected { }; konnected = callPackage ../development/python-modules/konnected { };