diff --git a/srcpkgs/python3-publicsuffix2/patches/system-psl.patch b/srcpkgs/python3-publicsuffix2/patches/system-psl.patch new file mode 100644 index 00000000000..2e3f7194472 --- /dev/null +++ b/srcpkgs/python3-publicsuffix2/patches/system-psl.patch @@ -0,0 +1,19 @@ +--- a/src/publicsuffix2/__init__.py ++++ b/src/publicsuffix2/__init__.py +@@ -55,7 +55,7 @@ except ImportError: + PSL_URL = 'https://publicsuffix.org/list/public_suffix_list.dat' + + BASE_DIR = path.dirname(__file__) +-PSL_FILE = path.join(BASE_DIR, 'public_suffix_list.dat') ++PSL_FILE = '/usr/share/publicsuffix/public_suffix_list.dat' + ABOUT_PSL_FILE = path.join(BASE_DIR, 'public_suffix_list.ABOUT') + + +--- a/src/publicsuffix2/public_suffix_list.ABOUT ++++ b/src/publicsuffix2/public_suffix_list.ABOUT +@@ -8,4 +8,4 @@ home_url: https://publicsuffix.org/ + owner: Mozilla + copyright: Copyright (c) Mozilla and others + license: mpl-2.0 +-license_text_file: mpl-2.0.LICENSE ++license_text_file: /usr/share/licenses/MPL-2.0 diff --git a/srcpkgs/python3-publicsuffix2/template b/srcpkgs/python3-publicsuffix2/template index dfaec1c3e38..b1d4510cc7e 100644 --- a/srcpkgs/python3-publicsuffix2/template +++ b/srcpkgs/python3-publicsuffix2/template @@ -1,18 +1,23 @@ # Template file for 'python3-publicsuffix2' pkgname=python3-publicsuffix2 version=2019.12.21 -revision=3 +revision=4 build_style=python3-module -hostmakedepends="python3-setuptools python3-requests python3-wheel" -depends="python3" +hostmakedepends="python3-setuptools python3-requests python3-wheel public-suffix" +depends="python3 public-suffix" short_desc="Get a public suffix for a domain name using the Public Suffix List" maintainer="Evgeny Ermakov " -license="MIT, MPL-2.0" +license="MIT" homepage="https://github.com/nexB/python-publicsuffix2" changelog="https://raw.githubusercontent.com/nexB/python-publicsuffix2/develop/CHANGELOG.rst" distfiles="https://github.com/nexB/python-publicsuffix2/archive/release-2.${version//./-}.tar.gz" checksum=b4ef022fccd7b4968151af208b0f890e55c00b24892a1a826b2b7a381215bafa +post_extract() { + rm -f src/publicsuffix2/mpl-2.0.LICENSE + rm -f src/publicsuffix2/public_suffix_list.dat +} + post_install() { vlicense publicsuffix2.LICENSE }