2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, ua-parser }:
|
2018-01-13 22:01:06 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "user-agents";
|
2020-11-07 05:13:58 +00:00
|
|
|
version = "2.2.0";
|
2018-01-13 22:01:06 +00:00
|
|
|
|
|
|
|
# PyPI is missing devices.json
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "selwin";
|
|
|
|
repo = "python-user-agents";
|
|
|
|
rev = "v${version}";
|
2020-11-07 05:13:58 +00:00
|
|
|
sha256 = "0pcbjqj21c2ixhl414bh2h8khi8y1igzfpkyqwan1pakix0lq45a";
|
2018-01-13 22:01:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ua-parser ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-13 22:01:06 +00:00
|
|
|
description = "A Python library to identify devices by parsing user agent strings";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/selwin/python-user-agents";
|
2018-01-13 22:01:06 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|