summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/aiohttp-socks/default.nix
blob: 87ce910a364497037c3127095d2577b1f8653c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchPypi,
  python-socks,
  setuptools,
}:

buildPythonPackage rec {
  pname = "aiohttp-socks";
  version = "0.11.0";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "aiohttp_socks";
    hash = "sha256-Cv5RY4Unx5B35L1uVwUsh8SCQjPW4guwYcU3ZkIbEPA=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    python-socks
  ]
  ++ python-socks.optional-dependencies.asyncio;

  # Checks needs internet access
  doCheck = false;

  pythonImportsCheck = [ "aiohttp_socks" ];

  meta = {
    description = "SOCKS proxy connector for aiohttp";
    homepage = "https://github.com/romis2012/aiohttp-socks";
    changelog = "https://github.com/romis2012/aiohttp-socks/releases/tag/v${version}";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
}