python312Packages.asteval: migrate to pytest-cov-stub

This commit is contained in:
Fabian Affolter 2025-03-03 17:17:09 +01:00
parent c5c7e049eb
commit 1ee72631c3

View file

@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools-scm,
@ -12,7 +13,7 @@ buildPythonPackage rec {
version = "1.0.6";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "lmfit";
@ -21,14 +22,12 @@ buildPythonPackage rec {
hash = "sha256-DzLVe8TlWAPQXzai9CJlDAow6UTSmkA/DW3fT30YfZY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--cov=asteval --cov-report html" ""
'';
build-system = [ setuptools-scm ];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "asteval" ];
@ -41,7 +40,7 @@ buildPythonPackage rec {
description = "AST evaluator of Python expression using ast module";
homepage = "https://github.com/lmfit/asteval";
changelog = "https://github.com/lmfit/asteval/releases/tag/${version}";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}