Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
959 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "asteval";
version = "1.0.6";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "lmfit";
repo = "asteval";
tag = version;
hash = "sha256-DzLVe8TlWAPQXzai9CJlDAow6UTSmkA/DW3fT30YfZY=";
};
build-system = [ setuptools-scm ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "asteval" ];
disabledTests = [
# AssertionError: 'ImportError' != None
"test_set_default_nodehandler"
];
meta = with lib; {
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 ];
};
}