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