620eecebfb
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
37 lines
709 B
Nix
37 lines
709 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "simpleeval";
|
|
version = "0.9.11";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danthedeckie";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "111w76mahbf3lm2p72dkqp5fhwg7nvnwm4l078dgsgkixssjazi7";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|