depot/third_party/nixpkgs/pkgs/development/python-modules/user-agents/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

25 lines
701 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 = "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 ];
};
}