python3Packages.asteval: init at 0.9.21

This commit is contained in:
Fabian Affolter 2021-02-10 22:34:19 +01:00
parent 827bad2edc
commit 4582127fcd
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "asteval";
version = "0.9.21";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "newville";
repo = pname;
rev = version;
sha256 = "1bhdj7zybsqghgd7qx50il7nwfg79qx9wg03n0z96jgq5gydqd9w";
};
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 ];
};
}

View file

@ -461,6 +461,8 @@ in {
aspy-yaml = callPackage ../development/python-modules/aspy.yaml { };
asteval = callPackage ../development/python-modules/asteval { };
astor = callPackage ../development/python-modules/astor { };
astral = callPackage ../development/python-modules/astral { };