blob: 2ec3807476d1ed1c45f07be93a29b9b830c09aec (
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
|
{ lib
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "filetype";
version = "1.0.8";
src = fetchPypi {
inherit pname version;
sha256 = "77df14879b73fd9711b8bd4f465dadf2ecdafff0eac3b22c0bdb0ccba68db316";
};
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 ];
};
}
|