nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 809 B view raw
1{ 2 lib, 3 beautifulsoup4, 4 buildPythonPackage, 5 fetchPypi, 6 pytest7CheckHook, 7 requests, 8 requests-mock, 9}: 10 11buildPythonPackage rec { 12 pname = "favicon"; 13 version = "0.7.0"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-bWtaeN4qDQCEWJ9ofzhLLs1qZScJP+xWRAOxowYF16g="; 19 }; 20 21 postPatch = '' 22 sed -i "/pytest-runner/d" setup.py 23 ''; 24 25 propagatedBuildInputs = [ 26 beautifulsoup4 27 requests 28 ]; 29 30 nativeCheckInputs = [ 31 pytest7CheckHook 32 requests-mock 33 ]; 34 35 pythonImportsCheck = [ "favicon" ]; 36 37 meta = { 38 description = "Find a website's favicon"; 39 homepage = "https://github.com/scottwernervt/favicon"; 40 changelog = "https://github.com/scottwernervt/favicon/blob/${version}/CHANGELOG.rst"; 41 license = lib.licenses.mit; 42 }; 43}