Skip to content

Commit

Permalink
chore(poetry2nix): add explicit dependency for libxcrypt for pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth committed Nov 16, 2022
1 parent f322215 commit bbcfd44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion poetry-overrides.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ pkgs, ... }:
let
inherit (pkgs) lib stdenv;
parallelizeSetuptoolsBuild = drv: drv.overridePythonAttrs (attrs: {
format = "setuptools";
enableParallelBuilding = true;
Expand Down Expand Up @@ -51,8 +52,11 @@ self: super:
nativeBuildInputs = attrs.nativeBuildInputs or [ ] ++ [ self.setuptools ];
});

pydantic = (parallelizeSetuptoolsBuild super.pydantic).overridePythonAttrs (attrs: {
buildInputs = attrs.buildInputs or [ ] ++ lib.optionals (self.pythonOlder "3.9") [ pkgs.libxcrypt ];
});

pandas = parallelizeSetuptoolsBuild super.pandas;
pydantic = parallelizeSetuptoolsBuild super.pydantic;
substrait-validator = super.substrait-validator.override {
preferWheel = true;
};
Expand Down

0 comments on commit bbcfd44

Please sign in to comment.