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 = "0.10.0.20240515"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-0BlbqefYDjYRIWv5UgjTRInD12l1wGp+nnwJBE5vbXs="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 passthru.optional-dependencies = { 27 update = [ requests ]; 28 readme = [ pandoc ]; 29 }; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "publicsuffixlist" ]; 34 35 pytestFlagsArray = [ "publicsuffixlist/test.py" ]; 36 37 meta = with lib; { 38 description = "Public Suffix List parser implementation"; 39 homepage = "https://github.com/ko-zu/psl"; 40 license = licenses.mpl20; 41 maintainers = with maintainers; [ fab ]; 42 mainProgram = "publicsuffixlist-download"; 43 }; 44}