1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "asteval";
10 version = "0.9.23";
11 disabled = pythonOlder "3.6";
12
13 src = fetchFromGitHub {
14 owner = "newville";
15 repo = pname;
16 rev = version;
17 sha256 = "sha256-9Zxb2EzB6nxDQHdlryFiwyNW+76VvysLUB78bXKzfv0=";
18 };
19
20 checkInputs = [ pytestCheckHook ];
21
22 pythonImportsCheck = [ "asteval" ];
23
24 meta = with lib; {
25 description = "AST evaluator of Python expression using ast module";
26 homepage = "https://github.com/newville/asteval";
27 license = with licenses; [ mit ];
28 maintainers = with maintainers; [ fab ];
29 };
30}