blob: d82cc0d3f6b8499ee96192474621792ccfc7c598 (
plain) (
blame)
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
42
43
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27
, backports_ssl_match_hostname
, mock
, paramiko
, pytest
, requests
, six
, websocket_client
}:
buildPythonPackage rec {
version = "4.0.2";
pname = "docker";
src = fetchPypi {
inherit pname version;
sha256 = "0r1i46h8x1vfvadayyvmh5hc6mpzgv3vvp6pv4g1wavamya2wnyc";
};
propagatedBuildInputs = [
six
requests
websocket_client
paramiko
] ++ stdenv.lib.optional isPy27 backports_ssl_match_hostname;
checkInputs = [
mock
pytest
];
# Other tests touch network
checkPhase = ''
${pytest}/bin/pytest tests/unit/
'';
meta = with stdenv.lib; {
description = "An API client for docker written in Python";
homepage = https://github.com/docker/docker-py;
license = licenses.asl20;
maintainers = with maintainers; [ jonringer ];
};
}
|