1{ lib 2, beautifulsoup4 3, buildPythonPackage 4, fetchPypi 5, pytestCheckHook 6, pythonOlder 7, requests 8, requests-mock 9}: 10 11buildPythonPackage rec { 12 pname = "favicon"; 13 version = "0.7.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-bWtaeN4qDQCEWJ9ofzhLLs1qZScJP+xWRAOxowYF16g="; 21 }; 22 23 postPatch = '' 24 sed -i "/pytest-runner/d" setup.py 25 ''; 26 27 propagatedBuildInputs = [ 28 beautifulsoup4 29 requests 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 requests-mock 35 ]; 36 37 pythonImportsCheck = [ 38 "favicon" 39 ]; 40 41 meta = with lib; { 42 description = "Find a website's favicon"; 43 homepage = "https://github.com/scottwernervt/favicon"; 44 changelog = "https://github.com/scottwernervt/favicon/blob/${version}/CHANGELOG.rst"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ elohmeier ]; 47 }; 48}