nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 39 lines 776 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, setuptools-scm 7}: 8 9buildPythonPackage rec { 10 pname = "asteval"; 11 version = "0.9.26"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchFromGitHub { 15 owner = "newville"; 16 repo = pname; 17 rev = version; 18 sha256 = "0l2iv51yclqn52w3yvyz3brpbca076ivv70h4gd6bkhwjbax1i2b"; 19 }; 20 21 SETUPTOOLS_SCM_PRETEND_VERSION = version; 22 23 nativeBuildInputs = [ 24 setuptools-scm 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ "asteval" ]; 32 33 meta = with lib; { 34 description = "AST evaluator of Python expression using ast module"; 35 homepage = "https://github.com/newville/asteval"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}