python3Packages.docker: 5.0.3 -> 6.0.0
This commit is contained in:
parent
e7cc94a20a
commit
20d4ce6981
@ -2,39 +2,49 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy27
|
, pythonOlder
|
||||||
, backports_ssl_match_hostname
|
, packaging
|
||||||
, mock
|
|
||||||
, paramiko
|
, paramiko
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, requests
|
, requests
|
||||||
, six
|
, setuptools_scm
|
||||||
|
, urllib3
|
||||||
, websocket-client
|
, websocket-client
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "docker";
|
pname = "docker";
|
||||||
version = "5.0.3";
|
version = "6.0.0";
|
||||||
|
format = "pyproject";
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "d916a26b62970e7c2f554110ed6af04c7ccff8e9f81ad17d0d40c75637e227fb";
|
sha256 = "sha256-GeMwRwr0AWfSk7A1JXjB+iLXSzTT7fXU/5DrwgO7svE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = lib.optional isPy27 mock;
|
nativeBuildInputs = [
|
||||||
|
setuptools_scm
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
paramiko
|
packaging
|
||||||
requests
|
requests
|
||||||
six
|
urllib3
|
||||||
websocket-client
|
websocket-client
|
||||||
] ++ lib.optional isPy27 backports_ssl_match_hostname;
|
];
|
||||||
|
|
||||||
|
passthru.optional-dependencies.ssh = [
|
||||||
|
paramiko
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||||
|
|
||||||
pytestFlagsArray = [ "tests/unit" ];
|
pytestFlagsArray = [
|
||||||
|
"tests/unit"
|
||||||
|
];
|
||||||
|
|
||||||
# Deselect socket tests on Darwin because it hits the path length limit for a Unix domain socket
|
# Deselect socket tests on Darwin because it hits the path length limit for a Unix domain socket
|
||||||
disabledTests = lib.optionals stdenv.isDarwin [ "api_test" "stream_response" "socket_file" ];
|
disabledTests = lib.optionals stdenv.isDarwin [ "api_test" "stream_response" "socket_file" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user