blob: b73d797e3e5776c8289cf4fb73eb415c78ab4371 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
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 ];
};
})
|