From 34cc7ef1687cdb26912e3a4a71e5fe386a30d33c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 19 Oct 2022 22:34:36 +0000 Subject: [PATCH 1/2] python310Packages.httpagentparser: 1.9.3 -> 1.9.5 --- pkgs/development/python-modules/httpagentparser/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/httpagentparser/default.nix b/pkgs/development/python-modules/httpagentparser/default.nix index fae412075bc..9ac2a68e9a7 100644 --- a/pkgs/development/python-modules/httpagentparser/default.nix +++ b/pkgs/development/python-modules/httpagentparser/default.nix @@ -5,12 +5,12 @@ buildPythonPackage rec { pname = "httpagentparser"; - version = "1.9.3"; + version = "1.9.5"; # Github version does not have any release tags src = fetchPypi { inherit pname version; - sha256 = "1x20j4gyx4vfsxs3bx8qcbdhq7n34gjr8gd01qlri96wpmn4c3rp"; + sha256 = "sha256-U879nWWZD2/lnAN4ytjqG53493DS6L2dh2LtrgM76Ao="; }; # PyPi version does not include test directory From edc4feb452380ac8d0b6d4a7913e949d2e03294a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 20 Oct 2022 12:10:47 +0200 Subject: [PATCH 2/2] 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 9ac2a68e9a7..bc7a8e33f4a 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 ]; };