depot/third_party/nixpkgs/pkgs/development/python-modules/user-agents/default.nix
Default email eefb417d14 Project import generated by Copybara.
GitOrigin-RevId: a52e974cff8fb80c427e0d55c01b3b8c770ccec4
2020-11-06 01:33:48 +01:00

24 lines
686 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub, ua-parser }:
buildPythonPackage rec {
pname = "user-agents";
version = "2.2.0";
# PyPI is missing devices.json
src = fetchFromGitHub {
owner = "selwin";
repo = "python-user-agents";
rev = "v${version}";
sha256 = "0pcbjqj21c2ixhl414bh2h8khi8y1igzfpkyqwan1pakix0lq45a";
};
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 ];
};
}