diff --git a/pkgs/development/python-modules/httpagentparser/default.nix b/pkgs/development/python-modules/httpagentparser/default.nix index 9ac2a68e9a75..bc7a8e33f4ac 100644 --- a/pkgs/development/python-modules/httpagentparser/default.nix +++ b/pkgs/development/python-modules/httpagentparser/default.nix @@ -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 ]; };