blob: cb4d538da3ddc8df2a8f55c5b5d9e2a4896146f2 (
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
27
28
29
30
31
32
33
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, editdistance
}:
buildPythonPackage rec {
pname = "identify";
version = "1.6.1";
src = fetchFromGitHub {
owner = "pre-commit";
repo = pname;
rev = "v${version}";
sha256 = "1sqhqqjp53dwm8yq4nrgggxbvzs3szbg49z5sj2ss9xzlgmimclm";
};
checkInputs = [
editdistance
pytestCheckHook
];
pythonImportsCheck = [ "identify" ];
meta = with lib; {
description = "File identification library for Python";
homepage = "https://github.com/chriskuehl/identify";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|