bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
30 lines
708 B
Nix
30 lines
708 B
Nix
{
|
|
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 = with lib; {
|
|
description = "Python library to identify devices by parsing user agent strings";
|
|
homepage = "https://github.com/selwin/python-user-agents";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|