about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorGabriel Ebner <gebner@gebner.org>2020-08-29 16:40:31 +0200
committerGabriel Ebner <gebner@gebner.org>2020-08-29 16:41:44 +0200
commitc9bc95d613f39e48d5cb2d6942d3c2d679b96285 (patch)
treedeb379ce1e88f2f81f3dabc45f0be1e7544c8783 /pkgs/development
parentf210992c9281721d0eb712886e3c5cbf0b27aa63 (diff)
python3Packages.pure-eval: init at 0.1.0
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/pure-eval/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pure-eval/default.nix b/pkgs/development/python-modules/pure-eval/default.nix
new file mode 100644
index 0000000000000..d7e92f09784b4
--- /dev/null
+++ b/pkgs/development/python-modules/pure-eval/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildPythonPackage, fetchFromGitHub, setuptools_scm, toml, pytest }:
+
+buildPythonPackage rec {
+  pname = "pure_eval";
+  version = "0.1.0";
+
+  src = fetchFromGitHub {
+    owner = "alexmojaki";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1d3gpc9mrmwdk6l87x7ll23vwv6l8l2iqvi63r86j7bj5s8m2ci8";
+  };
+
+  SETUPTOOLS_SCM_PRETEND_VERSION = version;
+
+  buildInputs = [ setuptools_scm ];
+  propagatedBuildInputs = [ toml ];
+
+  checkInputs = [ pytest ];
+
+  meta = with lib; {
+    description = "Safely evaluate AST nodes without side effects";
+    homepage = "http://github.com/alexmojaki/pure_eval";
+    license = licenses.mit;
+    maintainers = with maintainers; [ gebner ];
+  };
+}