From edc4feb452380ac8d0b6d4a7913e949d2e03294a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 20 Oct 2022 12:10:47 +0200 Subject: [PATCH] python310Packages.httpagentparser: disable on older Python releases --- .../python-modules/httpagentparser/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 ]; };