pythonPackages.magic: refactor move to python-modules
This commit is contained in:
parent
93e026ce04
commit
a8d1e5c4a5
28
pkgs/development/python-modules/magic/default.nix
Normal file
28
pkgs/development/python-modules/magic/default.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pkgs.file.name}";
|
||||
|
||||
src = pkgs.file.src;
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace python/magic.py --replace "find_library('magic')" "'${pkgs.file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
'';
|
||||
|
||||
buildInputs = [ pkgs.file ];
|
||||
|
||||
preConfigure = "cd python";
|
||||
|
||||
# No test suite
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Python wrapper around libmagic";
|
||||
homepage = http://www.darwinsys.com/file/;
|
||||
license = licenses.lgpl2;
|
||||
};
|
||||
|
||||
}
|
@ -5771,27 +5771,7 @@ in {
|
||||
|
||||
python_magic = callPackage ../development/python-modules/python-magic { };
|
||||
|
||||
magic = buildPythonPackage rec {
|
||||
name = "${pkgs.file.name}";
|
||||
|
||||
src = pkgs.file.src;
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace python/magic.py --replace "find_library('magic')" "'${pkgs.file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
'';
|
||||
|
||||
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/;
|
||||
};
|
||||
};
|
||||
magic = callPackage ../development/python-modules/magic { };
|
||||
|
||||
m2crypto = buildPythonPackage rec {
|
||||
version = "0.24.0";
|
||||
|
Loading…
Reference in New Issue
Block a user