8 tagVersion = "2.2019-12-21";
11 pname = "publicsuffix2";
12 # tags have dashes, while the library version does not
13 # see https://github.com/nexB/python-publicsuffix2/issues/12
14 version = lib.replaceStrings [ "-" ] [ "" ] tagVersion;
17 src = fetchFromGitHub {
19 repo = "python-publicsuffix2";
20 rev = "release-${tagVersion}";
21 hash = "sha256-OV0O4LLxQ2LQiEHc1JTvScu35o2IWxo/hgn/COh2e7Y=";
24 build-system = [ setuptools ];
27 # only used to update the interal publicsuffix list
28 substituteInPlace setup.py \
29 --replace "'requests >= 2.7.0'," ""
32 pythonImportsCheck = [ "publicsuffix2" ];
35 description = "Get a public suffix for a domain name using the Public Suffix List";
36 homepage = "https://github.com/nexB/python-publicsuffix2";
37 license = licenses.mpl20;