python312Packages.asteval: migrate to pytest-cov-stub

Changed files
+7 -8
pkgs
development
python-modules
asteval
+7 -8
pkgs/development/python-modules/asteval/default.nix
···
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools-scm,
···
version = "1.0.6";
pyproject = true;
-
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "lmfit";
···
tag = version;
hash = "sha256-DzLVe8TlWAPQXzai9CJlDAow6UTSmkA/DW3fT30YfZY=";
};
-
-
postPatch = ''
-
substituteInPlace pyproject.toml \
-
--replace-fail "--cov=asteval --cov-report html" ""
-
'';
build-system = [ setuptools-scm ];
-
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "asteval" ];
···
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 ];
maintainers = with maintainers; [ fab ];
};
}
···
lib,
buildPythonPackage,
fetchFromGitHub,
+
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools-scm,
···
version = "1.0.6";
pyproject = true;
+
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "lmfit";
···
tag = version;
hash = "sha256-DzLVe8TlWAPQXzai9CJlDAow6UTSmkA/DW3fT30YfZY=";
};
build-system = [ setuptools-scm ];
+
nativeCheckInputs = [
+
pytest-cov-stub
+
pytestCheckHook
+
];
pythonImportsCheck = [ "asteval" ];
···
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 = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}