Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 935 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, cffi 5, six 6, pytestCheckHook 7, pytest-mock 8, R 9, rPackages }: 10 11buildPythonPackage rec { 12 pname = "rchitect"; 13 version = "0.3.40"; 14 15 src = fetchFromGitHub { 16 owner = "randy3k"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "yJMiPmusZ62dd6+5VkA2uSjq57a0C3arG8CgiUUHKpk="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py --replace '"pytest-runner"' "" 24 ''; 25 26 propagatedBuildInputs = [ 27 cffi 28 six 29 ] ++ (with rPackages; [ 30 reticulate 31 ]); 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 pytest-mock 36 R 37 ]; 38 39 preCheck = '' 40 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R}/lib/R/lib 41 cd $TMPDIR 42 ''; 43 44 pythonImportsCheck = [ "rchitect" ]; 45 46 meta = with lib; { 47 description = "Interoperate R with Python"; 48 homepage = "https://github.com/randy3k/rchitect"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ savyajha ]; 51 }; 52}