summary refs log tree commit diff
path: root/pkgs/development/python-modules/favicon/default.nix
blob: 5af3be420b02475abe75be01da492877e9c3020b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, buildPythonPackage, fetchPypi, requests, beautifulsoup4, pytest, requests-mock,
  pytestrunner }:

buildPythonPackage rec {
  pname = "favicon";
  version = "0.7.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "6d6b5a78de2a0d0084589f687f384b2ecd6a6527093fec564403b1a30605d7a8";
  };

  buildInputs = [ pytestrunner ];
  checkInputs = [ pytest requests-mock ];
  propagatedBuildInputs = [ requests beautifulsoup4 ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Find a website's favicon";
    homepage = "https://github.com/scottwernervt/favicon";
    license = licenses.mit;
    maintainers = with maintainers; [ elohmeier ];
  };
}