depot/third_party/nixpkgs/pkgs/development/python-modules/user-agents/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

24 lines
686 B
Nix

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