summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/aiodocker/default.nix
blob: f3c76acceac0e53de7e34bc04b840ba6967cc2c9 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
}:

buildPythonPackage rec {
  pname = "aiodocker";
  # unstable includes support for python 3.10+
  version = "unstable-2022-01-20";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "aio-libs";
    repo = pname;
    rev = "f1dbdc3d42147f4c2ab5e6802acf6f7d0f885be4";
    sha256 = "RL5Ck4wsBZO88afmoojeFKbdIeCjDo/SwNqUcERH6Ls=";
  };

  propagatedBuildInputs = [
    aiohttp
  ];

  # tests require docker daemon
  doCheck = false;
  pythonImportsCheck = [ "aiodocker" ];

  meta = with lib; {
    description = "Docker API client for asyncio";
    homepage = "https://github.com/aio-libs/aiodocker";
    license = licenses.asl20;
    maintainers = with maintainers; [ emilytrau ];
  };
}