Merge pull request #201900 from tjni/filemagic

python310Packages.filemagic: remove

authored by Fabian Affolter and committed by GitHub 3c5cc34f 2714a225

+1 -35
-30
pkgs/development/python-modules/filemagic/default.nix
··· 1 - { stdenv, lib, buildPythonPackage, fetchFromGitHub, file 2 - , isPy3k, mock, unittest2 }: 3 - 4 - buildPythonPackage { 5 - pname = "filemagic"; 6 - version = "1.6"; 7 - disabled = !isPy3k; # asserts on ResourceWarning 8 - 9 - # Don't use the PyPI source because it's missing files required for testing 10 - src = fetchFromGitHub { 11 - owner = "aliles"; 12 - repo = "filemagic"; 13 - rev = "138649062f769fb10c256e454a3e94ecfbf3017b"; 14 - sha256 = "1jxf928jjl2v6zv8kdnfqvywdwql1zqkm1v5xn1d5w0qjcg38d4n"; 15 - }; 16 - 17 - postPatch = '' 18 - substituteInPlace magic/api.py --replace "ctypes.util.find_library('magic')" \ 19 - "'${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}'" 20 - ''; 21 - 22 - checkInputs = [ mock ] ++ lib.optionals (!isPy3k) [ unittest2 ]; 23 - 24 - meta = with lib; { 25 - description = "File type identification using libmagic"; 26 - homepage = "https://github.com/aliles/filemagic"; 27 - license = licenses.asl20; 28 - maintainers = with maintainers; [ erikarvstedt ]; 29 - }; 30 - }
-3
pkgs/development/tools/poetry2nix/poetry2nix/overrides/build-systems.json
··· 4816 4816 "setuptools", 4817 4817 "setuptools-scm" 4818 4818 ], 4819 - "filemagic": [ 4820 - "setuptools" 4821 - ], 4822 4819 "filetype": [ 4823 4820 "setuptools" 4824 4821 ],
+1
pkgs/top-level/python-aliases.nix
··· 77 77 face_recognition_models = face-recognition-models; # added 2022-10-15 78 78 fake_factory = throw "fake_factory has been removed because it is unused and deprecated by upstream since 2016."; # added 2022-05-30 79 79 faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12 80 + filemagic = throw "inactive since 2014, so use python-magic instead"; # added 2022-11-19 80 81 flask_login = flask-login; # added 2022-10-17 81 82 flask_sqlalchemy = flask-sqlalchemy; # added 2022-07-20 82 83 flask_testing = flask-testing; # added 2022-04-25
-2
pkgs/top-level/python-packages.nix
··· 3228 3228 3229 3229 filelock = callPackage ../development/python-modules/filelock { }; 3230 3230 3231 - filemagic = callPackage ../development/python-modules/filemagic { }; 3232 - 3233 3231 filetype = callPackage ../development/python-modules/filetype { }; 3234 3232 3235 3233 filterpy = callPackage ../development/python-modules/filterpy { };