diff options
| author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-11-19 15:20:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-19 15:20:46 +0100 |
| commit | 3c5cc34fac30437567fb71882c19112fbde27bee (patch) | |
| tree | 7fb447342f5cf546b6609244be9465ac0384e01d /pkgs/development/python-modules | |
| parent | 2714a2252133c88e779b685c0e8a6e1630df9f16 (diff) | |
| parent | a2972fca8cd5828771ccead2a94a12c6ca6906cd (diff) | |
Merge pull request #201900 from tjni/filemagic
python310Packages.filemagic: remove
Diffstat (limited to 'pkgs/development/python-modules')
| -rw-r--r-- | pkgs/development/python-modules/filemagic/default.nix | 30 |
1 files changed, 0 insertions, 30 deletions
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 ]; - }; -} |
