1{ lib 2, buildPythonPackage 3, fetchPypi 4, pandoc 5, pytestCheckHook 6, pythonOlder 7, requests 8, setuptools 9}: 10 11buildPythonPackage rec { 12 pname = "publicsuffixlist"; 13 version = "0.10.0.20231120"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-HUFufQ4cEeko1babG6oIBzagTB1akxzCjA1ma6aace0="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 passthru.optional-dependencies = { 28 update = [ 29 requests 30 ]; 31 readme = [ 32 pandoc 33 ]; 34 }; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "publicsuffixlist" 42 ]; 43 44 pytestFlagsArray = [ 45 "publicsuffixlist/test.py" 46 ]; 47 48 meta = with lib; { 49 description = "Public Suffix List parser implementation"; 50 homepage = "https://github.com/ko-zu/psl"; 51 license = licenses.mpl20; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}