blob: 4bbb6c41f54376d1a5ba4499bc2f5d294db87f13 (
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.7";
src = fetchPypi {
inherit pname version;
sha256 = "19vav4w8vvcnrps1mirjkrv4pr1khwn5ma6m5pgpxd4qip73wffs";
};
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 ];
};
}
|