Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 async-timeout, 5 buildPythonPackage, 6 fetchPypi, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "hole"; 12 version = "0.8.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-zkghLJe1SzN2qOeL23+T2ISjGkuODd9tJA1tO3hw2a0="; 20 }; 21 22 propagatedBuildInputs = [ 23 aiohttp 24 async-timeout 25 ]; 26 27 # no tests are present 28 doCheck = false; 29 30 pythonImportsCheck = [ "hole" ]; 31 32 meta = with lib; { 33 description = "Python API for interacting with a Pihole instance"; 34 homepage = "https://github.com/home-assistant-ecosystem/python-hole"; 35 changelog = "https://github.com/home-assistant-ecosystem/python-hole/releases/tag/${version}"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}