1{ lib, buildPythonPackage, fetchPypi, requests, beautifulsoup4, pytest, requests-mock, 2 pytest-runner }: 3 4buildPythonPackage rec { 5 pname = "favicon"; 6 version = "0.7.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "6d6b5a78de2a0d0084589f687f384b2ecd6a6527093fec564403b1a30605d7a8"; 11 }; 12 13 buildInputs = [ pytest-runner ]; 14 checkInputs = [ pytest requests-mock ]; 15 propagatedBuildInputs = [ requests beautifulsoup4 ]; 16 17 checkPhase = '' 18 pytest 19 ''; 20 21 meta = with lib; { 22 description = "Find a website's favicon"; 23 homepage = "https://github.com/scottwernervt/favicon"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ elohmeier ]; 26 }; 27}