mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
pythonPackages.magic: fix package, closes #16361
This commit is contained in:
parent
e0abe74baf
commit
f225ffa397
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue