2018-01-13 22:01:06 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, ua-parser }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "user-agents";
|
2020-02-09 21:20:00 +00:00
|
|
|
version = "2.1.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-02-09 21:20:00 +00:00
|
|
|
sha256 = "04bndajsfnpymxfiggnj7g38cmlvca3ry5k2611x8ibp38x53yhc";
|
2018-01-13 22:01:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ua-parser ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A 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 ];
|
|
|
|
};
|
|
|
|
}
|