python3Packages.asteval: init at 0.9.21
This commit is contained in:
parent
827bad2edc
commit
4582127fcd
2 changed files with 32 additions and 0 deletions
30
pkgs/development/python-modules/asteval/default.nix
Normal file
30
pkgs/development/python-modules/asteval/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue