depot/third_party/nixpkgs/pkgs/development/python-modules/simpleeval/default.nix
Default email 0eeabdeb66 Project import generated by Copybara.
GitOrigin-RevId: c07b471b52be8fbc49a7dc194e9b37a6e19ee04d
2022-01-24 21:21:06 -06:00

37 lines
709 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "simpleeval";
version = "0.9.12";
format = "pyproject";
src = fetchFromGitHub {
owner = "danthedeckie";
repo = pname;
rev = version;
sha256 = "0khgl729q5133fgc00d550f4r77707rkkn7r56az4v8bvx0q8xp4";
};
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 ];
};
}