pythonPackages.filemagic: disable python2, no longer compat
This commit is contained in:
parent
77fe6c1c76
commit
622e5db89e
@ -4,6 +4,7 @@
|
||||
buildPythonPackage {
|
||||
pname = "filemagic";
|
||||
version = "1.6";
|
||||
disabled = !isPy3k; # asserts on ResourceWarning
|
||||
|
||||
# Don't use the PyPI source because it's missing files required for testing
|
||||
src = fetchFromGitHub {
|
||||
@ -18,7 +19,7 @@ buildPythonPackage {
|
||||
"'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
'';
|
||||
|
||||
checkInputs = [ (if isPy3k then mock else unittest2) ];
|
||||
checkInputs = [ mock ] ++ lib.optionals (!isPy3k) [ unittest2 ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "File type identification using libmagic";
|
||||
|
Loading…
Reference in New Issue
Block a user