blob: db8c560d5ae837754f8ab05d8e143ecba4016620 (
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,
hatchling,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "simpleeval";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "danthedeckie";
repo = "simpleeval";
tag = version;
hash = "sha256-CwCuQ/wd8nLKKXji2dzz9mvZrQEm2/kEm93Pan/8+90=";
};
build-system = [ hatchling ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "test_simpleeval.py" ];
pythonImportsCheck = [ "simpleeval" ];
meta = {
description = "Simple, safe single expression evaluator library";
homepage = "https://github.com/danthedeckie/simpleeval";
changelog = "https://github.com/danthedeckie/simpleeval/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ johbo ];
};
}
|