python310Packages.radian: 0.6.6 -> 0.6.7

This commit is contained in:
Savyasachee Jha 2023-08-21 21:30:54 +05:30
parent 177093cb47
commit 953b2d706b
2 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@
buildPythonPackage rec {
pname = "radian";
version = "0.6.6";
version = "0.6.7";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -27,13 +27,12 @@ buildPythonPackage rec {
owner = "randy3k";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-zA7R9UIB0hOWev10Y4oySIKeIxTOo0V6Q3Fxe+FeHSU=";
hash = "sha256-MEstbQj1dOcrukgDvMwL330L9INEZcIupebrSYMOrZk=";
};
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' "" \
--replace '0.3.39,<0.4.0' '0.3.39'
--replace '"pytest-runner"' ""
'';
nativeBuildInputs = [
@ -59,6 +58,8 @@ buildPythonPackage rec {
git
];
makeWrapperArgs = [ "--set R_HOME ${R}/lib/R" ];
preCheck = ''
export HOME=$TMPDIR
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R}/lib/R/lib

View File

@ -26,8 +26,7 @@ runCommand (radian.name + "-wrapper") {
};
} (''
makeWrapper "${radian}/bin/radian" "$out/bin/radian" \
--prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE" \
--set "R_HOME" "${R}/lib/R"
--prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE"
'' + lib.optionalString wrapR ''
cd ${R}/bin
for exe in *; do