blob: f0d1caa25d27633bb1120952ef744bca397ceebb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "filetype";
version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ZrVs1kdL9B2MVGYDR9N6/MP30ZcGSN42XBAu93VIqts=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"filetype"
];
disabledTests = [
# https://github.com/h2non/filetype.py/issues/119
"test_guess_memoryview"
"test_guess_extension_memoryview"
"test_guess_mime_memoryview"
# https://github.com/h2non/filetype.py/issues/128
"test_guess_zstd"
];
disabledTestPaths = [
# We don't care about benchmarks
"tests/test_benchmark.py"
];
meta = with lib; {
description = "Infer file type and MIME type of any file/buffer";
homepage = "https://github.com/h2non/filetype.py";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
|