forked from ibis-project/ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
poetry-overrides.nix
41 lines (40 loc) · 1.32 KB
/
poetry-overrides.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
self: super:
let
disabledMacOSWheels = [
"grpcio"
"debugpy"
"sqlalchemy"
"greenlet"
];
in
{
# `wheel` cannot be used as a wheel to unpack itself, since that would
# require itself (infinite recursion)
wheel = super.wheel.override { preferWheel = false; };
# patch oscrypto for openssl 3 support: the fix is to relax some regexes that
# inspect the libcrypto version
#
# without these patches applied, snowflake doesn't work in the nix environment
#
# these overrides can be removed when oscrypto is released again (1.3.0 was
# released on 2022-03-17)
oscrypto = (super.oscrypto.override { preferWheel = false; }).overridePythonAttrs (attrs: {
patches = attrs.patches or [ ] ++ [
(self.pkgs.fetchpatch {
url = "https://github.com/wbond/oscrypto/commit/ebbc944485b278192b60080ea1f495e287efb4f8.patch";
sha256 = "sha256-c1faM8szkn/7AjDthzmDisytzO8UdrzDtPkuuITjkRQ=";
})
(self.pkgs.fetchpatch {
url = "https://github.com/wbond/oscrypto/commit/d5f3437ed24257895ae1edd9e503cfb352e635a8.patch";
sha256 = "sha256-sRwxD99EV8mmiOAjM8emews9gvDeFtpBV3sSLiNEziM=";
})
];
});
} // super.lib.listToAttrs (
map
(name: {
inherit name;
value = super.${name}.override { preferWheel = !self.pkgs.stdenv.isDarwin; };
})
disabledMacOSWheels
)