blob: 072c3185b23479d5317b731ec52beaa6720201a5 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
ua-parser,
}:
buildPythonPackage rec {
pname = "user-agents";
version = "2.2.0";
format = "setuptools";
# PyPI is missing devices.json
src = fetchFromGitHub {
owner = "selwin";
repo = "python-user-agents";
rev = "v${version}";
sha256 = "0pcbjqj21c2ixhl414bh2h8khi8y1igzfpkyqwan1pakix0lq45a";
};
propagatedBuildInputs = [ ua-parser ];
meta = {
description = "Python library to identify devices by parsing user agent strings";
homepage = "https://github.com/selwin/python-user-agents";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|