python311Packages.kneed: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-12 02:32:19 +02:00
parent 70e5f69810
commit 06f30a2e18

View File

@ -7,12 +7,13 @@
scipy,
matplotlib,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "kneed";
version = "0.8.5";
format = "pyproject";
pyproject = true;
src = fetchFromGitHub {
owner = "arvkevi";
@ -21,20 +22,16 @@ buildPythonPackage rec {
sha256 = "sha256-oakP6NkdvTzMZcoXS6cKNsRo//K+CoPLlhvbQLGij00=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=kneed" ""
'';
build-system = [ hatchling ];
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
dependencies = [
numpy
scipy
];
checkInputs = [
pytestCheckHook
pytest-cov-stub
matplotlib
];