blob: f89b4e690914fb95defc350b3cfbe4733461ce5b (
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.9";
src = fetchPypi {
inherit pname version;
sha256 = "7124e1bc6a97ffc7c6bead5b8fb2e129baf312a9e60db5772bc27c741799d475";
};
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 ];
};
}
|