mach-nix/tests/test_r_pkgs.nix
DavHau c2812bebdb
Fix + Improve CI (#275)
- disable tests on macos due to https://github.com/actions/virtual-environments/issues/60
- enable testing of different mach-nix expressions in ./tests
- fix cryptography package < 3.4
2021-05-14 13:54:55 +07:00

22 lines
402 B
Nix

{
mach-nix ? import ../. {},
...
}:
with builtins;
let
pyEnv = mach-nix.mkPython {
requirements = ''
requests
'';
packagesExtra = with mach-nix.rPackages; [
data_table
];
};
in
if pyEnv ? python.pkgs.requests
&& pyEnv ? python.pkgs.rpy2
&& elem mach-nix.rPackages.data_table pyEnv.python.pkgs.rpy2.buildInputs then
{ inherit pyEnv; }
else
throw "Error"