depot/third_party/nixpkgs/pkgs/development/python-modules/httpagentparser/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

31 lines
690 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
}:
buildPythonPackage rec {
pname = "httpagentparser";
version = "1.9.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-U879nWWZD2/lnAN4ytjqG53493DS6L2dh2LtrgM76Ao=";
};
# PyPi version does not include test directory
doCheck = false;
pythonImportsCheck = [ "httpagentparser" ];
meta = with lib; {
description = "Module to extract OS, Browser, etc. information from http user agent string";
homepage = "https://github.com/shon/httpagentparser";
license = licenses.mit;
maintainers = with maintainers; [ gador ];
};
}