24 lines
484 B
Nix
24 lines
484 B
Nix
{
|
|
baseArgsMkPython ? {},
|
|
baseArgsBuildPythonPackage ? {},
|
|
mach-nix ? import ../. {},
|
|
...
|
|
}:
|
|
with builtins;
|
|
let
|
|
pyEnv = mach-nix.mkPython (baseArgsMkPython // {
|
|
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"
|