python: fix alot by having magic and python_magic packages
This commit is contained in:
@@ -1612,7 +1612,7 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
||||
colander
|
||||
deform
|
||||
deform_bootstrap
|
||||
magic
|
||||
python_magic
|
||||
pyyaml
|
||||
cryptacular
|
||||
hypatia
|
||||
@@ -2743,7 +2743,7 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
||||
});
|
||||
|
||||
|
||||
magic = buildPythonPackage rec {
|
||||
python_magic = buildPythonPackage rec {
|
||||
# TODO: wait for release 0.4.3+
|
||||
rev = "9f18d2c125b2f0240caec7096625834624cc4c20";
|
||||
name = "python-magic-${rev}";
|
||||
@@ -2770,6 +2770,28 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
||||
};
|
||||
};
|
||||
|
||||
magic = pkgs.stdenv.mkDerivation rec {
|
||||
name = "python-${pkgs.file.name}";
|
||||
|
||||
src = pkgs.file.src;
|
||||
|
||||
patches = [ ../tools/misc/file/python.patch ];
|
||||
buildInputs = [ python pkgs.file ];
|
||||
|
||||
configurePhase = "cd python";
|
||||
|
||||
buildPhase = "${python}/bin/${python.executable} setup.py build";
|
||||
|
||||
installPhase = ''
|
||||
${python}/bin/${python.executable} setup.py install --prefix=$out
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A Python wrapper around libmagic";
|
||||
homepage = http://www.darwinsys.com/file/;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
m2crypto = buildPythonPackage rec {
|
||||
version = "0.21.1";
|
||||
|
||||
Reference in New Issue
Block a user