mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 14:09:17 +03:00
python312Packages.asteval: migrate to pytest-cov-stub
This commit is contained in:
parent
c5c7e049eb
commit
1ee72631c3
1 changed files with 7 additions and 8 deletions
|
@ -2,6 +2,7 @@
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
pytest-cov-stub,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
setuptools-scm,
|
setuptools-scm,
|
||||||
|
@ -12,7 +13,7 @@ buildPythonPackage rec {
|
||||||
version = "1.0.6";
|
version = "1.0.6";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lmfit";
|
owner = "lmfit";
|
||||||
|
@ -21,14 +22,12 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-DzLVe8TlWAPQXzai9CJlDAow6UTSmkA/DW3fT30YfZY=";
|
hash = "sha256-DzLVe8TlWAPQXzai9CJlDAow6UTSmkA/DW3fT30YfZY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace-fail "--cov=asteval --cov-report html" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
build-system = [ setuptools-scm ];
|
build-system = [ setuptools-scm ];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [
|
||||||
|
pytest-cov-stub
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "asteval" ];
|
pythonImportsCheck = [ "asteval" ];
|
||||||
|
|
||||||
|
@ -41,7 +40,7 @@ buildPythonPackage rec {
|
||||||
description = "AST evaluator of Python expression using ast module";
|
description = "AST evaluator of Python expression using ast module";
|
||||||
homepage = "https://github.com/lmfit/asteval";
|
homepage = "https://github.com/lmfit/asteval";
|
||||||
changelog = "https://github.com/lmfit/asteval/releases/tag/${version}";
|
changelog = "https://github.com/lmfit/asteval/releases/tag/${version}";
|
||||||
license = with licenses; [ mit ];
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue