python310Packages.httpagentparser: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-10-20 12:10:47 +02:00 committed by GitHub
parent 34cc7ef168
commit edc4feb452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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