nixpkgs/pkgs/development/python-modules/docker/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
2022-09-14 21:36:07 +00:00
, pythonOlder
, packaging
2019-07-29 21:12:38 +00:00
, paramiko
, pytestCheckHook
2019-07-29 21:12:38 +00:00
, requests
2022-09-14 21:36:07 +00:00
, setuptools_scm
, urllib3
, websocket-client
2017-01-27 10:32:28 +00:00
}:
2019-06-20 00:44:24 +00:00
2017-01-27 10:32:28 +00:00
buildPythonPackage rec {
pname = "docker";
2022-09-14 21:36:07 +00:00
version = "6.0.0";
format = "pyproject";
disabled = pythonOlder "3.7";
2017-01-27 10:32:28 +00:00
src = fetchPypi {
inherit pname version;
2022-09-14 21:36:07 +00:00
sha256 = "sha256-GeMwRwr0AWfSk7A1JXjB+iLXSzTT7fXU/5DrwgO7svE=";
2017-01-27 10:32:28 +00:00
};
2022-09-14 21:36:07 +00:00
nativeBuildInputs = [
setuptools_scm
];
2017-01-27 10:32:28 +00:00
propagatedBuildInputs = [
2022-09-14 21:36:07 +00:00
packaging
requests
2022-09-14 21:36:07 +00:00
urllib3
websocket-client
2022-09-14 21:36:07 +00:00
];
passthru.optional-dependencies.ssh = [
paramiko
];
2017-01-27 10:32:28 +00:00
checkInputs = [
pytestCheckHook
2022-09-14 21:36:07 +00:00
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
2022-09-14 21:36:07 +00:00
pytestFlagsArray = [
"tests/unit"
];
# 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;
2017-01-27 10:32:28 +00:00
meta = with lib; {
2017-01-27 10:32:28 +00:00
description = "An API client for docker written in Python";
2019-10-15 04:13:49 +00:00
homepage = "https://github.com/docker/docker-py";
2017-01-27 10:32:28 +00:00
license = licenses.asl20;
2019-06-20 00:44:24 +00:00
maintainers = with maintainers; [ jonringer ];
2017-01-27 10:32:28 +00:00
};
}