depot/third_party/nixpkgs/pkgs/development/python-modules/docker/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05: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.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "bad94b8dd001a8a4af19ce4becc17f41b09f228173ffe6a4e0355389eef142f2";
};
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 ];
};
}