mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Merge pull request #119 from utdemir/pyarrow-parameter-fix
Make pyarrow override compatible with newer nixpkgs
This commit is contained in:
commit
31f9f723c3
1 changed files with 8 additions and 1 deletions
|
@ -454,7 +454,14 @@ self: super:
|
|||
old:
|
||||
let
|
||||
parseMinor = drv: lib.concatStringsSep "." (lib.take 2 (lib.splitVersion drv.version));
|
||||
_arrow-cpp = pkgs.arrow-cpp.override { inherit (self) python; };
|
||||
|
||||
# Starting with nixpkgs revision f149c7030a7, pyarrow takes "python3" as an argument
|
||||
# instead of "python". Below we inspect function arguments to maintain compatibilitiy.
|
||||
_arrow-cpp = pkgs.arrow-cpp.override (
|
||||
builtins.intersectAttrs
|
||||
(lib.functionArgs pkgs.arrow-cpp.override) { python = self.python; python3 = self.python; }
|
||||
);
|
||||
|
||||
ARROW_HOME = _arrow-cpp;
|
||||
arrowCppVersion = parseMinor pkgs.arrow-cpp;
|
||||
pyArrowVersion = parseMinor super.pyarrow;
|
||||
|
|
Loading…
Add table
Reference in a new issue