2021-02-10 21:34:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asteval";
|
2021-02-27 21:02:41 +00:00
|
|
|
version = "0.9.23";
|
2021-02-10 21:34:19 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "newville";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-02-27 21:02:41 +00:00
|
|
|
sha256 = "sha256-9Zxb2EzB6nxDQHdlryFiwyNW+76VvysLUB78bXKzfv0=";
|
2021-02-10 21:34:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "asteval" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "AST evaluator of Python expression using ast module";
|
|
|
|
homepage = "https://github.com/newville/asteval";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|