at 24.11-pre 1.0 kB view raw
1{ 2 lib, 3 aiohttp, 4 aioresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 orjson, 8 pytest-asyncio, 9 pytest-error-for-skips, 10 pytestCheckHook, 11 pythonOlder, 12 setuptools, 13 syrupy, 14}: 15 16buildPythonPackage rec { 17 pname = "nextdns"; 18 version = "3.0.0"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.11"; 22 23 src = fetchFromGitHub { 24 owner = "bieniu"; 25 repo = "nextdns"; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-ka/VT7c72la4z/BVAWnV06MxVmu52ZcJ4GsEeP7vbKA="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 aiohttp 34 orjson 35 ]; 36 37 nativeCheckInputs = [ 38 aioresponses 39 pytest-asyncio 40 pytest-error-for-skips 41 pytestCheckHook 42 syrupy 43 ]; 44 45 pythonImportsCheck = [ "nextdns" ]; 46 47 meta = with lib; { 48 description = "Module for the NextDNS API"; 49 homepage = "https://github.com/bieniu/nextdns"; 50 changelog = "https://github.com/bieniu/nextdns/releases/tag/${version}"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}