diff --git a/pkgs/development/python-modules/filemagic/default.nix b/pkgs/development/python-modules/filemagic/default.nix deleted file mode 100644 index 96ee0a95b283..000000000000 --- a/pkgs/development/python-modules/filemagic/default.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ stdenv, lib, buildPythonPackage, fetchFromGitHub, file -, isPy3k, mock, unittest2 }: - -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 { - owner = "aliles"; - repo = "filemagic"; - rev = "138649062f769fb10c256e454a3e94ecfbf3017b"; - sha256 = "1jxf928jjl2v6zv8kdnfqvywdwql1zqkm1v5xn1d5w0qjcg38d4n"; - }; - - postPatch = '' - substituteInPlace magic/api.py --replace "ctypes.util.find_library('magic')" \ - "'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'" - ''; - - checkInputs = [ mock ] ++ lib.optionals (!isPy3k) [ unittest2 ]; - - meta = with lib; { - description = "File type identification using libmagic"; - homepage = "https://github.com/aliles/filemagic"; - license = licenses.asl20; - maintainers = with maintainers; [ erikarvstedt ]; - }; -} diff --git a/pkgs/development/tools/poetry2nix/poetry2nix/overrides/build-systems.json b/pkgs/development/tools/poetry2nix/poetry2nix/overrides/build-systems.json index e2e674d967bd..e5d5c946a403 100644 --- a/pkgs/development/tools/poetry2nix/poetry2nix/overrides/build-systems.json +++ b/pkgs/development/tools/poetry2nix/poetry2nix/overrides/build-systems.json @@ -4816,9 +4816,6 @@ "setuptools", "setuptools-scm" ], - "filemagic": [ - "setuptools" - ], "filetype": [ "setuptools" ], diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index eb85a22c71e2..fd1f7cb50bf9 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -77,6 +77,7 @@ mapAliases ({ face_recognition_models = face-recognition-models; # added 2022-10-15 fake_factory = throw "fake_factory has been removed because it is unused and deprecated by upstream since 2016."; # added 2022-05-30 faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12 + filemagic = throw "inactive since 2014, so use python-magic instead"; # added 2022-11-19 flask_login = flask-login; # added 2022-10-17 flask_sqlalchemy = flask-sqlalchemy; # added 2022-07-20 flask_testing = flask-testing; # added 2022-04-25 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 431d9a46cba7..18ebf402c3c6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3228,8 +3228,6 @@ self: super: with self; { filelock = callPackage ../development/python-modules/filelock { }; - filemagic = callPackage ../development/python-modules/filemagic { }; - filetype = callPackage ../development/python-modules/filetype { }; filterpy = callPackage ../development/python-modules/filterpy { };