ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / simpleeval / default.nix
blobddc4b56654e6e7211601b1a55667648f41b2f79d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "simpleeval";
10   version = "0.9.12";
11   format = "pyproject";
13   src = fetchFromGitHub {
14     owner = "danthedeckie";
15     repo = pname;
16     rev = version;
17     sha256 = "0khgl729q5133fgc00d550f4r77707rkkn7r56az4v8bvx0q8xp4";
18   };
20   nativeBuildInputs = [
21     setuptools
22   ];
24   checkInputs = [
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     license = licenses.mit;
40     maintainers = with maintainers; [ johbo ];
41   };