evcc: 0.131.8 -> 0.131.10 (#364658)
[NixPkgs.git] / pkgs / development / python-modules / favicon / default.nix
blob46c9517337104aa6d44a8e4906d6e8e8e494a4d6
2   lib,
3   beautifulsoup4,
4   buildPythonPackage,
5   fetchPypi,
6   pytest7CheckHook,
7   pythonOlder,
8   requests,
9   requests-mock,
12 buildPythonPackage rec {
13   pname = "favicon";
14   version = "0.7.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-bWtaeN4qDQCEWJ9ofzhLLs1qZScJP+xWRAOxowYF16g=";
22   };
24   postPatch = ''
25     sed -i "/pytest-runner/d" setup.py
26   '';
28   propagatedBuildInputs = [
29     beautifulsoup4
30     requests
31   ];
33   nativeCheckInputs = [
34     pytest7CheckHook
35     requests-mock
36   ];
38   pythonImportsCheck = [ "favicon" ];
40   meta = with lib; {
41     description = "Find a website's favicon";
42     homepage = "https://github.com/scottwernervt/favicon";
43     changelog = "https://github.com/scottwernervt/favicon/blob/${version}/CHANGELOG.rst";
44     license = licenses.mit;
45   };