Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / filetype / default.nix
blobb4479e61baa3373ec98600f1c827e4c3cbdd63a5
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "filetype";
10   version = "1.2.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-ZrVs1kdL9B2MVGYDR9N6/MP30ZcGSN42XBAu93VIqts=";
18   };
20   nativeCheckInputs = [
21     pytestCheckHook
22   ];
24   pythonImportsCheck = [
25     "filetype"
26   ];
28   disabledTests = [
29     # https://github.com/h2non/filetype.py/issues/119
30     "test_guess_memoryview"
31     "test_guess_extension_memoryview"
32     "test_guess_mime_memoryview"
33     # https://github.com/h2non/filetype.py/issues/128
34     "test_guess_zstd"
35   ];
37   disabledTestPaths = [
38     # We don't care about benchmarks
39     "tests/test_benchmark.py"
40   ];
42   meta = with lib; {
43     description = "Infer file type and MIME type of any file/buffer";
44     mainProgram = "filetype";
45     homepage = "https://github.com/h2non/filetype.py";
46     license = licenses.mit;
47     maintainers = with maintainers; [ dotlambda ];
48   };