python311Packages.docker: 6.1.3 -> 7.0.0

https://github.com/docker/docker-py/releases/tag/7.0.0
This commit is contained in:
Martin Weinelt 2023-12-11 18:26:37 +01:00
parent 0a583f04a4
commit 9e0f41fcc6
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -3,28 +3,38 @@
, buildPythonPackage
, fetchPypi
, pythonOlder
, packaging
, paramiko
, pytestCheckHook
, requests
# build-system
, setuptools
, setuptools-scm
# dependencies
, packaging
, requests
, urllib3
# optional-dependenices
, paramiko
, websocket-client
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "docker";
version = "6.1.3";
version = "7.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-qm0XgwBFul7wFo1eqjTTe+6xE5SMQTr/4dWZH8EfmiA=";
hash = "sha256-Mjc2+5LNlBj8XnEzvJU+EanaBPRIP4KLUn21U/Hn5aM=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
@ -32,16 +42,24 @@ buildPythonPackage rec {
packaging
requests
urllib3
websocket-client
];
passthru.optional-dependencies.ssh = [
passthru.optional-dependencies = {
ssh = [
paramiko
];
websockets = [
websocket-client
];
};
pythonImportsCheck = [
"docker"
];
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
pytestFlagsArray = [
"tests/unit"
@ -49,16 +67,13 @@ buildPythonPackage rec {
# 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"
];
dontUseSetuptoolsCheck = true;
pythonImportsCheck = [
"docker"
"api_test"
"stream_response"
"socket_file"
];
meta = with lib; {
changelog = "https://github.com/docker/docker-py/releases/tag/${version}";
description = "An API client for docker written in Python";
homepage = "https://github.com/docker/docker-py";
license = licenses.asl20;