27 lines
547 B
Nix
27 lines
547 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "filetype";
|
|
version = "1.0.10";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-MjoTUAcxtsZaJTvDkwu86aVt+6cekLYP/ZaKtp2a6Tc=";
|
|
};
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest discover
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|