depot/third_party/nixpkgs/pkgs/development/python-modules/simpleeval/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

42 lines
767 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "simpleeval";
version = "0.9.12";
format = "pyproject";
src = fetchFromGitHub {
owner = "danthedeckie";
repo = pname;
rev = version;
sha256 = "0khgl729q5133fgc00d550f4r77707rkkn7r56az4v8bvx0q8xp4";
};
nativeBuildInputs = [
setuptools
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"test_simpleeval.py"
];
pythonImportsCheck = [
"simpleeval"
];
meta = with lib; {
description = "Simple, safe single expression evaluator library";
homepage = "https://github.com/danthedeckie/simpleeval";
license = licenses.mit;
maintainers = with maintainers; [ johbo ];
};
}