biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / simpleeval / default.nix
blobdf1765637a5e51ae513b1e0ae31441c4d2de2ae4
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   pytestCheckHook,
7 }:
9 buildPythonPackage rec {
10   pname = "simpleeval";
11   version = "1.0.0";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "danthedeckie";
16     repo = pname;
17     rev = "refs/tags/${version}";
18     hash = "sha256-Ryi3ZzIPQ0x/rCQFfoXDOjLuE110n/vUbpvt2IX4GyA=";
19   };
21   nativeBuildInputs = [ setuptools ];
23   nativeCheckInputs = [ pytestCheckHook ];
25   pytestFlagsArray = [ "test_simpleeval.py" ];
27   pythonImportsCheck = [ "simpleeval" ];
29   meta = with lib; {
30     description = "Simple, safe single expression evaluator library";
31     homepage = "https://github.com/danthedeckie/simpleeval";
32     changelog = "https://github.com/danthedeckie/simpleeval/releases/tag/${version}";
33     license = licenses.mit;
34     maintainers = with maintainers; [ johbo ];
35   };