Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 658 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "asteval"; 10 version = "0.9.23"; 11 disabled = pythonOlder "3.6"; 12 13 src = fetchFromGitHub { 14 owner = "newville"; 15 repo = pname; 16 rev = version; 17 sha256 = "sha256-9Zxb2EzB6nxDQHdlryFiwyNW+76VvysLUB78bXKzfv0="; 18 }; 19 20 checkInputs = [ pytestCheckHook ]; 21 22 pythonImportsCheck = [ "asteval" ]; 23 24 meta = with lib; { 25 description = "AST evaluator of Python expression using ast module"; 26 homepage = "https://github.com/newville/asteval"; 27 license = with licenses; [ mit ]; 28 maintainers = with maintainers; [ fab ]; 29 }; 30}