1{
2 lib,
3 aiodns,
4 aiohttp,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytest-cov-stub,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12 zeroconf,
13}:
14
15buildPythonPackage rec {
16 pname = "aiohttp-asyncmdnsresolver";
17 version = "0.1.1";
18 pyproject = true;
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchFromGitHub {
23 owner = "aio-libs";
24 repo = "aiohttp-asyncmdnsresolver";
25 rev = "v${version}";
26 hash = "sha256-gtB5vnlOVeAFACnhR5DIS5p3caZkOXrollXFINl/7hQ=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 aiodns
33 aiohttp
34 zeroconf
35 ];
36
37 nativeCheckInputs = [
38 pytest-asyncio
39 pytest-cov-stub
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "aiohttp_asyncmdnsresolver" ];
44
45 meta = {
46 description = "Module to resolve mDNS with aiohttp";
47 homepage = "https://github.com/aio-libs/aiohttp-asyncmdnsresolver";
48 changelog = "https://github.com/aio-libs/aiohttp-asyncmdnsresolver/blob/${src.rev}/CHANGES.rst";
49 license = lib.licenses.asl20;
50 maintainers = with lib.maintainers; [ fab ];
51 };
52}