blob: 659223779ba735171677ced303983d245fd98c94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
toml,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pure-eval";
version = "0.2.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = "pure_eval";
rev = "v${version}";
hash = "sha256-gdP8/MkzTyjkZaWUG5PoaOtBqzbCXYNYBX2XBLWLh18=";
};
build-system = [ setuptools-scm ];
dependencies = [ toml ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pure_eval" ];
meta = {
description = "Safely evaluate AST nodes without side effects";
homepage = "https://github.com/alexmojaki/pure_eval";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|