1{ lib, buildPythonPackage, fetchFromGitHub, setuptools_scm, toml, pytest }:
2
3buildPythonPackage rec {
4 pname = "pure_eval";
5 version = "0.1.0";
6
7 src = fetchFromGitHub {
8 owner = "alexmojaki";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1d3gpc9mrmwdk6l87x7ll23vwv6l8l2iqvi63r86j7bj5s8m2ci8";
12 };
13
14 SETUPTOOLS_SCM_PRETEND_VERSION = version;
15
16 buildInputs = [ setuptools_scm ];
17 propagatedBuildInputs = [ toml ];
18
19 checkInputs = [ pytest ];
20
21 meta = with lib; {
22 description = "Safely evaluate AST nodes without side effects";
23 homepage = "http://github.com/alexmojaki/pure_eval";
24 license = licenses.mit;
25 maintainers = with maintainers; [ gebner ];
26 };
27}