Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
863 B
Nix
47 lines
863 B
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytest7CheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
requests-mock,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "favicon";
|
|
version = "0.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
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 = with lib; {
|
|
description = "Find a website's favicon";
|
|
homepage = "https://github.com/scottwernervt/favicon";
|
|
changelog = "https://github.com/scottwernervt/favicon/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
};
|
|
}
|