Skip to content

Commit

Permalink
chore(setuptools-files): regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
ibis-squawk-bot[bot] authored and kszucs committed Sep 7, 2022
1 parent e8413aa commit cf4d39d
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 251 deletions.
17 changes: 17 additions & 0 deletions poetry-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,33 @@ self: super:
let
inherit (self) pkgs;
inherit (pkgs) lib stdenv;

numpyVersion = super.numpy.version;
cythonVersion = super.cython.version;
pandasVersion = super.pandas.version;

parallelizeSetupPy = drv: drv.overridePythonAttrs (attrs: {
format = "setuptools";
enableParallelBuilding = true;
setupPyBuildFlags = attrs.setupPyBuildFlags or [ ] ++ [ "--parallel" "$NIX_BUILD_CORES" ];
});
versionBetween = version: lower: upper:
lib.versionAtLeast version lower && lib.versionOlder version upper;
customizeCython = (lib.versionAtLeast pandasVersion "1.4.4") && (lib.versionOlder cythonVersion "0.29.32");
in
{
cython = super.cython.overridePythonAttrs (
attrs: lib.optionalAttrs customizeCython rec {
version = "0.29.32";

src = self.fetchPypi {
pname = "Cython";
inherit version;
sha256 = "sha256-hzPPR1i3kwTypOOev6xekjQbzke8zrJsElQ5iy+MGvc=";
};
}
);

# this patch only applies to macos and only with numpy versions >=1.21,<1.21.2
# see https://github.com/numpy/numpy/issues/19624 for details
numpy = super.numpy.overridePythonAttrs (
Expand Down
Loading

0 comments on commit cf4d39d

Please sign in to comment.