python310Packages.filetype: 1.0.10 -> 1.0.13
This commit is contained in:
parent
887cf48b06
commit
7e315248b7
1 changed files with 26 additions and 6 deletions
|
@ -1,21 +1,41 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "filetype";
|
||||
version = "1.0.10";
|
||||
version = "1.0.13";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-MjoTUAcxtsZaJTvDkwu86aVt+6cekLYP/ZaKtp2a6Tc=";
|
||||
hash = "sha256-ahBHYv6T11XJYqqWyz2TCkj5GgdhBHEmxe6tIVPjOwM=";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"filetype"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/h2non/filetype.py/issues/119
|
||||
"test_guess_memoryview"
|
||||
"test_guess_extension_memoryview"
|
||||
"test_guess_mime_memoryview"
|
||||
];
|
||||
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue