2019-01-30 13:03:16 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, requests, beautifulsoup4, pytest, requests-mock,
|
|
|
|
pytestrunner }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "favicon";
|
2019-10-24 07:47:30 +01:00
|
|
|
version = "0.7.0";
|
2019-01-30 13:03:16 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:30 +01:00
|
|
|
sha256 = "6d6b5a78de2a0d0084589f687f384b2ecd6a6527093fec564403b1a30605d7a8";
|
2019-01-30 13:03:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytestrunner ];
|
|
|
|
checkInputs = [ pytest requests-mock ];
|
|
|
|
propagatedBuildInputs = [ requests beautifulsoup4 ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Find a website's favicon";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/scottwernervt/favicon";
|
2019-01-30 13:03:16 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|