Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pyte 6, pexpect 7, ptyprocess 8, jedi 9, git 10, lineedit 11, prompt-toolkit 12, pygments 13, rchitect 14, six 15, R 16, rPackages 17}: 18 19buildPythonPackage rec { 20 pname = "radian"; 21 version = "0.6.5"; 22 23 src = fetchFromGitHub { 24 owner = "randy3k"; 25 repo = pname; 26 rev = "v${version}"; 27 sha256 = "iuD4EkGZ1GwNxR8Gpg9ANe3lMHJYZ/Q/RyuN6vZZWME="; 28 }; 29 30 postPatch = '' 31 substituteInPlace setup.py --replace '"pytest-runner"' "" 32 ''; 33 34 nativeBuildInputs = [ 35 R # needed at setup time to detect R_HOME 36 ]; 37 38 propagatedBuildInputs = [ 39 lineedit 40 prompt-toolkit 41 pygments 42 rchitect 43 six 44 ] ++ (with rPackages; [ 45 reticulate 46 askpass 47 ]); 48 49 nativeCheckInputs = [ 50 pytestCheckHook 51 pyte 52 pexpect 53 ptyprocess 54 jedi 55 git 56 ]; 57 58 preCheck = '' 59 export HOME=$TMPDIR 60 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R}/lib/R/lib 61 ''; 62 63 pythonImportsCheck = [ "radian" ]; 64 65 meta = with lib; { 66 description = "A 21 century R console"; 67 homepage = "https://github.com/randy3k/radian"; 68 license = licenses.mit; 69 maintainers = with maintainers; [ savyajha ]; 70 }; 71}