at master 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pytest-asyncio, 8 pytest-error-for-skips, 9 pytestCheckHook, 10 pythonOlder, 11 setuptools, 12 syrupy, 13 tenacity, 14}: 15 16buildPythonPackage rec { 17 pname = "nextdns"; 18 version = "4.1.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.12"; 22 23 src = fetchFromGitHub { 24 owner = "bieniu"; 25 repo = "nextdns"; 26 tag = version; 27 hash = "sha256-VTOANFrGOI1XDU/5THWkj/o5AWIpXcPKmOF1IF0I22Y="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 aiohttp 34 tenacity 35 ]; 36 37 nativeCheckInputs = [ 38 aioresponses 39 pytest-asyncio 40 pytest-error-for-skips 41 pytestCheckHook 42 syrupy 43 ]; 44 45 disabledTests = [ 46 # mocked object called too many times 47 "test_retry_error" 48 "test_retry_success" 49 ]; 50 51 pythonImportsCheck = [ "nextdns" ]; 52 53 meta = with lib; { 54 description = "Module for the NextDNS API"; 55 homepage = "https://github.com/bieniu/nextdns"; 56 changelog = "https://github.com/bieniu/nextdns/releases/tag/${version}"; 57 license = licenses.asl20; 58 maintainers = with maintainers; [ fab ]; 59 }; 60}