From 347302a14e8c454273af9cb54845173de793b52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 23 Mar 2022 08:52:23 +0100 Subject: [PATCH] python39Packages.publicsuffix2: remove requirement on requests, update meta --- .../python-modules/publicsuffix2/default.nix | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/publicsuffix2/default.nix b/pkgs/development/python-modules/publicsuffix2/default.nix index 30a02ec2f0d..67699b107ab 100644 --- a/pkgs/development/python-modules/publicsuffix2/default.nix +++ b/pkgs/development/python-modules/publicsuffix2/default.nix @@ -1,26 +1,28 @@ -{ lib, buildPythonPackage, fetchFromGitHub, requests }: +{ lib, buildPythonPackage, fetchFromGitHub }: buildPythonPackage rec { pname = "publicsuffix2"; - version = "2.20191221"; + version = "2.2019-12-21"; - # Tests are missing in the sdist - # See: https://github.com/nexB/python-publicsuffix2/issues/12 src = fetchFromGitHub { owner = "nexB"; repo = "python-publicsuffix2"; - rev = "release-2.2019-12-21"; + rev = "release-${version}"; sha256 = "1dkvfvl0izq9hqzilnw8ipkbgjs9xyad9p21i3864hzinbh0wp9r"; }; - nativeBuildInputs = [ requests ]; + postPatch = '' + # only used to update the interal publicsuffix list + substituteInPlace setup.py \ + --replace "'requests >= 2.7.0'," "" + ''; + + pythonImportsCheck = [ "publicsuffix2" ]; meta = with lib; { - description = '' - Get a public suffix for a domain name using the Public Suffix - List. Forked from and using the same API as the publicsuffix package. - ''; - homepage = "https://pypi.python.org/pypi/publicsuffix2/"; + description = "Get a public suffix for a domain name using the Public Suffix List"; + homepage = "https://github.com/nexB/python-publicsuffix2"; license = licenses.mpl20; + maintainers = with maintainers; [ SuperSandro2000 ]; }; }