blob: 2fe36aa84e7a6bf67ce77ece8fe4c12ea206f800 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
google-re2,
pyyaml,
pytestCheckHook,
setuptools,
setuptools-scm,
ua-parser-builtins,
ua-parser-rs,
}:
buildPythonPackage rec {
pname = "ua-parser";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "ua-parser";
repo = "uap-python";
tag = version;
fetchSubmodules = true;
hash = "sha256-l8EBQq5Hqw/Vx4zvWy2QQ1m7mrAiqYNK2x3yUmJj8Xw=";
};
build-system = [
pyyaml
setuptools
setuptools-scm
];
dependencies = [
ua-parser-builtins
];
optional-dependencies = {
yaml = [ pyyaml ];
re2 = [ google-re2 ];
regex = [ ua-parser-rs ];
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ua_parser" ];
meta = {
changelog = "https://github.com/ua-parser/uap-python/releases/tag/${version}";
description = "Python implementation of the UA Parser";
homepage = "https://github.com/ua-parser/uap-python";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|