Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / favicon / default.nix
blobdb6b70cbf8932e32cfc76f1398583f5f20ed7157
1 { lib
2 , beautifulsoup4
3 , buildPythonPackage
4 , fetchPypi
5 , pytest7CheckHook
6 , pythonOlder
7 , requests
8 , requests-mock
9 }:
11 buildPythonPackage rec {
12   pname = "favicon";
13   version = "0.7.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-bWtaeN4qDQCEWJ9ofzhLLs1qZScJP+xWRAOxowYF16g=";
21   };
23   postPatch = ''
24     sed -i "/pytest-runner/d" setup.py
25   '';
27   propagatedBuildInputs = [
28     beautifulsoup4
29     requests
30   ];
32   nativeCheckInputs = [
33     pytest7CheckHook
34     requests-mock
35   ];
37   pythonImportsCheck = [
38     "favicon"
39   ];
41   meta = with lib; {
42     description = "Find a website's favicon";
43     homepage = "https://github.com/scottwernervt/favicon";
44     changelog = "https://github.com/scottwernervt/favicon/blob/${version}/CHANGELOG.rst";
45     license = licenses.mit;
46     maintainers = with maintainers; [ elohmeier ];
47   };