blob: 183a6a1bcc1872a45dbb54b61038fcc052f56379 (
plain)
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
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
cffi,
setuptools,
ukkonen,
}:
buildPythonPackage (finalAttrs: {
pname = "identify";
version = "2.6.16";
pyproject = true;
src = fetchFromGitHub {
owner = "pre-commit";
repo = "identify";
tag = "v${finalAttrs.version}";
hash = "sha256-+iLIU2NfKogFAdbAXXER3G7cDyvcey9pR+0HifQZoh8=";
};
build-system = [ setuptools ];
dependencies = [
cffi
pytestCheckHook
ukkonen
];
pythonImportsCheck = [ "identify" ];
meta = {
description = "File identification library for Python";
homepage = "https://github.com/pre-commit/identify";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "identify-cli";
};
})
|