Files
nixpkgs/pkgs/development/python-modules/asteval/default.nix
2026-08-23 08:57:27 +02:00

44 lines
942 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-cov-stub,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage (finalAttrs: {
pname = "asteval";
version = "1.0.10";
pyproject = true;
src = fetchFromGitHub {
owner = "lmfit";
repo = "asteval";
tag = finalAttrs.version;
hash = "sha256-Z30H1bSud/VbYnHqRYzyJnDufFM4uBhPcMtVmZ1Sl94=";
};
build-system = [ setuptools-scm ];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "asteval" ];
disabledTests = [
# AssertionError: 'ImportError' != None
"test_set_default_nodehandler"
];
meta = {
description = "AST evaluator of Python expression using ast module";
homepage = "https://github.com/lmfit/asteval";
changelog = "https://github.com/lmfit/asteval/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})