pythonPackages.magic: fix package, closes #16361

This commit is contained in:
Frederik Rietdijk 2017-04-17 11:40:20 +02:00
parent e0abe74baf
commit f225ffa397

View file

@ -14209,17 +14209,19 @@ in {
src = pkgs.file.src;
patchPhase = ''
substituteInPlace python/magic.py --replace "find_library('magic')" "'${pkgs.file}/lib/libmagic.so'"
substituteInPlace python/magic.py --replace "find_library('magic')" "'${pkgs.file}/lib/libmagic.${if stdenv.isDarwin then "dylib" else "so"}'"
'';
buildInputs = with self; [ python pkgs.file ];
buildInputs = with self; [ pkgs.file ];
preConfigure = "cd python";
# No test suite
doCheck = false;
meta = {
description = "A Python wrapper around libmagic";
homepage = http://www.darwinsys.com/file/;
broken = true;
};
};