Merge pull request #171115 from fabaff/filetype-bump
python310Packages.filetype: 1.0.10 -> 1.0.13
This commit is contained in:
commit
3083f9df92
|
@ -1,21 +1,41 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, python
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "filetype";
|
pname = "filetype";
|
||||||
version = "1.0.10";
|
version = "1.0.13";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-MjoTUAcxtsZaJTvDkwu86aVt+6cekLYP/ZaKtp2a6Tc=";
|
hash = "sha256-ahBHYv6T11XJYqqWyz2TCkj5GgdhBHEmxe6tIVPjOwM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [
|
||||||
${python.interpreter} -m unittest discover
|
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; {
|
meta = with lib; {
|
||||||
description = "Infer file type and MIME type of any file/buffer";
|
description = "Infer file type and MIME type of any file/buffer";
|
||||||
|
|
Loading…
Reference in a new issue