1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pandoc, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "publicsuffixlist"; 14 version = "1.0.2.20251002"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-Z5PJfDiXRYAsq8ZGIuk5HCJhHWQjqSZro01YjJOwP5k="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 optional-dependencies = { 27 update = [ requests ]; 28 readme = [ pandoc ]; 29 }; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "publicsuffixlist" ]; 34 35 enabledTestPaths = [ "publicsuffixlist/test.py" ]; 36 37 meta = with lib; { 38 changelog = "https://github.com/ko-zu/psl/blob/v${version}-gha/CHANGES.md"; 39 description = "Public Suffix List parser implementation"; 40 homepage = "https://github.com/ko-zu/psl"; 41 license = licenses.mpl20; 42 maintainers = with maintainers; [ fab ]; 43 mainProgram = "publicsuffixlist-download"; 44 }; 45}