Skip to content

Commit 4ae5f4d

Browse files
committedMar 8, 2017
pythonPackages.cryptography: fix test on macOS 10.12
Hydra didn't notice because it's running 10.11.
1 parent 74f8e0f commit 4ae5f4d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

Diff for: ‎pkgs/top-level/python-packages.nix

+8
Original file line numberDiff line numberDiff line change
@@ -4526,6 +4526,14 @@ in {
45264526
propagatedBuildInputs = with self; [ six idna ipaddress pyasn1 cffi pyasn1-modules pytz ]
45274527
++ optional (pythonOlder "3.4") self.enum34;
45284528

4529+
# The test assumes that if we're on Sierra or higher, that we use `getentropy`, but for binary
4530+
# compatibility with pre-Sierra for binary caches, we hide that symbol so the library doesn't
4531+
# use it. This boils down to them checking compatibility with `getentropy` in two different places,
4532+
# so let's neuter the second test.
4533+
patchPhase = ''
4534+
substituteInPlace ./tests/hazmat/backends/test_openssl.py --replace '"16.0"' '"99.0"'
4535+
'';
4536+
45294537
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
45304538
# can do until nix 1.11's release
45314539
__impureHostDeps = [ "/usr/lib" ];

0 commit comments

Comments
 (0)