2019-06-20 01:44:24 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27
|
2019-07-29 22:12:38 +01:00
|
|
|
, backports_ssl_match_hostname
|
|
|
|
, mock
|
|
|
|
, paramiko
|
|
|
|
, pytest
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, websocket_client
|
2017-01-27 10:32:28 +00:00
|
|
|
}:
|
2019-06-20 01:44:24 +01:00
|
|
|
|
2017-01-27 10:32:28 +00:00
|
|
|
buildPythonPackage rec {
|
2019-07-29 22:12:38 +01:00
|
|
|
version = "4.0.2";
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "docker";
|
2017-01-27 10:32:28 +00:00
|
|
|
|
2018-02-26 07:14:56 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-29 22:12:38 +01:00
|
|
|
sha256 = "0r1i46h8x1vfvadayyvmh5hc6mpzgv3vvp6pv4g1wavamya2wnyc";
|
2017-01-27 10:32:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
2017-05-07 11:55:45 +01:00
|
|
|
requests
|
2017-01-27 10:32:28 +00:00
|
|
|
websocket_client
|
2019-06-20 01:44:24 +01:00
|
|
|
paramiko
|
|
|
|
] ++ stdenv.lib.optional isPy27 backports_ssl_match_hostname;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest
|
2017-01-27 10:32:28 +00:00
|
|
|
];
|
|
|
|
|
2019-06-20 01:44:24 +01:00
|
|
|
# Other tests touch network
|
|
|
|
checkPhase = ''
|
|
|
|
${pytest}/bin/pytest tests/unit/
|
|
|
|
'';
|
2017-01-27 10:32:28 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An API client for docker written in Python";
|
|
|
|
homepage = https://github.com/docker/docker-py;
|
|
|
|
license = licenses.asl20;
|
2019-06-20 01:44:24 +01:00
|
|
|
maintainers = with maintainers; [ jonringer ];
|
2017-01-27 10:32:28 +00:00
|
|
|
};
|
|
|
|
}
|