about summary refs log tree commit diff
path: root/pkgs/development/python-modules/asteval
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-02-10 22:34:19 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-02-10 22:34:19 +0100
commit4582127fcd682c420f13cf18dfcbc1d241fe0d8c (patch)
tree468d3df0a48e5bef9918566a942e0838f390323e /pkgs/development/python-modules/asteval
parent827bad2edc1b442410dabb5998bc882f3b1eac12 (diff)
python3Packages.asteval: init at 0.9.21
Diffstat (limited to 'pkgs/development/python-modules/asteval')
-rw-r--r--pkgs/development/python-modules/asteval/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/asteval/default.nix b/pkgs/development/python-modules/asteval/default.nix
new file mode 100644
index 0000000000000..c66a5468873e4
--- /dev/null
+++ b/pkgs/development/python-modules/asteval/default.nix
@@ -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 ];
+  };
+}