blob: e29b3dfd2e1e04c5ad25c6763d3bbddacb425dea (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
beautifulsoup4,
buildPythonPackage,
fetchPypi,
pytest7CheckHook,
requests,
requests-mock,
}:
buildPythonPackage rec {
pname = "favicon";
version = "0.7.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-bWtaeN4qDQCEWJ9ofzhLLs1qZScJP+xWRAOxowYF16g=";
};
postPatch = ''
sed -i "/pytest-runner/d" setup.py
'';
propagatedBuildInputs = [
beautifulsoup4
requests
];
nativeCheckInputs = [
pytest7CheckHook
requests-mock
];
pythonImportsCheck = [ "favicon" ];
meta = {
description = "Find a website's favicon";
homepage = "https://github.com/scottwernervt/favicon";
changelog = "https://github.com/scottwernervt/favicon/blob/${version}/CHANGELOG.rst";
license = lib.licenses.mit;
};
}
|