11 buildPythonPackage rec {
12 pname = "python-magic";
15 src = fetchFromGitHub {
17 repo = "python-magic";
19 sha256 = "0zbdjr5shijs0jayz7gycpx0kn6v2bh83dpanyajk2vmy47jvbd6";
24 src = ./libmagic-path.patch;
25 libmagic = "${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}";
29 checkInputs = [ glibcLocales ];
32 LC_ALL="en_US.UTF-8" ${python.interpreter} test/test.py
36 description = "A python interface to the libmagic file type identification library";
37 homepage = "https://github.com/ahupp/python-magic";
38 license = lib.licenses.mit;