1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 flit-core,
7 pytest-aiohttp,
8 pytest-cov-stub,
9 pytestCheckHook,
10 pythonOlder,
11 typing-extensions,
12}:
13
14buildPythonPackage rec {
15 pname = "aiohttp-remotes";
16 version = "1.3.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.9";
20
21 src = fetchFromGitHub {
22 owner = "aio-libs";
23 repo = "aiohttp-remotes";
24 tag = "v${version}";
25 hash = "sha256-/bcYrpZfO/sXc0Tcpr67GBqCu4ZSAVmUj9kzupIHHnM=";
26 };
27
28 build-system = [
29 flit-core
30 ];
31
32 dependencies = [
33 aiohttp
34 typing-extensions
35 ];
36
37 nativeCheckInputs = [
38 pytest-aiohttp
39 pytest-cov-stub
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "aiohttp_remotes" ];
44
45 __darwinAllowLocalNetworking = true;
46
47 meta = with lib; {
48 description = "Set of useful tools for aiohttp.web server";
49 homepage = "https://github.com/wikibusiness/aiohttp-remotes";
50 license = licenses.mit;
51 maintainers = with maintainers; [ qyliss ];
52 };
53}