Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / simpleeval / default.nix
blob57693fb3791c6e86fffbacf3ccbd90adff783310
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "simpleeval";
10   version = "0.9.13";
11   format = "pyproject";
13   src = fetchFromGitHub {
14     owner = "danthedeckie";
15     repo = pname;
16     rev = "refs/tags/${version}";
17     hash = "sha256-I1GILYPE6OyotgRe0Ek/iHHv6q9/b/MlcTxMAtfZD80=";
18   };
20   nativeBuildInputs = [
21     setuptools
22   ];
24   nativeCheckInputs = [
25     pytestCheckHook
26   ];
28   pytestFlagsArray = [
29     "test_simpleeval.py"
30   ];
32   pythonImportsCheck = [
33     "simpleeval"
34   ];
36   meta = with lib; {
37     description = "Simple, safe single expression evaluator library";
38     homepage = "https://github.com/danthedeckie/simpleeval";
39     changelog = "https://github.com/danthedeckie/simpleeval/releases/tag/${version}";
40     license = licenses.mit;
41     maintainers = with maintainers; [ johbo ];
42   };