From 1ee72631c3d669e7a7461c075c0c46eb1ca8bc7c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 3 Mar 2025 17:17:09 +0100 Subject: [PATCH] python312Packages.asteval: migrate to pytest-cov-stub --- .../python-modules/asteval/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/asteval/default.nix b/pkgs/development/python-modules/asteval/default.nix index be1ae7a2bdba..bed12430810d 100644 --- a/pkgs/development/python-modules/asteval/default.nix +++ b/pkgs/development/python-modules/asteval/default.nix @@ -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 ]; }; }