depot/third_party/nixpkgs/pkgs/development/python-modules/docker/default.nix
Default email 78efc47b99 Project import generated by Copybara.
GitOrigin-RevId: 83cbad92d73216bb0d9187c56cce0b91f9121d5a
2020-12-07 07:45:13 +00:00

46 lines
1.1 KiB
Nix

{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27
, backports_ssl_match_hostname
, mock
, paramiko
, pytest
, pytestCheckHook
, requests
, six
, websocket_client
}:
buildPythonPackage rec {
pname = "docker";
version = "4.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "cffc771d4ea1389fc66bc95cb72d304aa41d1a1563482a9a000fba3a84ed5071";
};
nativeBuildInputs = lib.optional isPy27 mock;
propagatedBuildInputs = [
paramiko
requests
six
websocket_client
] ++ lib.optional isPy27 backports_ssl_match_hostname;
checkInputs = [
pytestCheckHook
];
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 [ "stream_response" "socket_file" ];
dontUseSetuptoolsCheck = true;
meta = with lib; {
description = "An API client for docker written in Python";
homepage = "https://github.com/docker/docker-py";
license = licenses.asl20;
maintainers = with maintainers; [ jonringer ];
};
}