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