pythonPackages.magic: fix package, closes #16361
This commit is contained in:
parent
e0abe74baf
commit
f225ffa397
@ -14209,17 +14209,19 @@ in {
|
|||||||
src = pkgs.file.src;
|
src = pkgs.file.src;
|
||||||
|
|
||||||
patchPhase = ''
|
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";
|
preConfigure = "cd python";
|
||||||
|
|
||||||
|
# No test suite
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A Python wrapper around libmagic";
|
description = "A Python wrapper around libmagic";
|
||||||
homepage = http://www.darwinsys.com/file/;
|
homepage = http://www.darwinsys.com/file/;
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user