1{ lib, buildPythonPackage, fetchPypi, requests, beautifulsoup4, pytest, requests-mock,
2 pytestrunner }:
3
4buildPythonPackage rec {
5 pname = "favicon";
6 version = "0.5.1";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "01jhb66nrqbf22z6ybpi8ndw6zifgysdmnh547027g96nz51669y";
11 };
12
13 buildInputs = [ pytestrunner ];
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 = http://github.com/scottwernervt/favicon;
24 license = licenses.mit;
25 maintainers = with maintainers; [ elohmeier ];
26 };
27}