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

51 lines
1.1 KiB
Nix
Raw Normal View History

2021-03-08 22:52:46 +01:00
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, isPy27
2019-07-29 14:12:38 -07:00
, backports_ssl_match_hostname
, mock
, paramiko
2019-12-09 22:34:21 -08:00
, pytestCheckHook
2019-07-29 14:12:38 -07:00
, requests
, six
, websocket_client
2017-01-27 11:32:28 +01:00
}:
2019-06-19 17:44:24 -07:00
2017-01-27 11:32:28 +01:00
buildPythonPackage rec {
2017-05-27 11:25:35 +02:00
pname = "docker";
2021-03-08 22:52:46 +01:00
version = "4.4.4";
2017-01-27 11:32:28 +01:00
2018-02-26 08:14:56 +01:00
src = fetchPypi {
inherit pname version;
2021-03-08 22:52:46 +01:00
sha256 = "d3393c878f575d3a9ca3b94471a3c89a6d960b35feb92f033c0de36cc9d934db";
2017-01-27 11:32:28 +01:00
};
nativeBuildInputs = lib.optional isPy27 mock;
2019-12-09 22:34:21 -08:00
2017-01-27 11:32:28 +01:00
propagatedBuildInputs = [
2019-06-19 17:44:24 -07:00
paramiko
2019-10-14 21:13:49 -07:00
requests
six
websocket_client
2019-12-09 22:34:21 -08:00
] ++ lib.optional isPy27 backports_ssl_match_hostname;
2019-06-19 17:44:24 -07:00
checkInputs = [
pytestCheckHook
];
2019-12-09 22:34:21 -08:00
pytestFlagsArray = [ "tests/unit" ];
2021-03-08 22:52:46 +01:00
2019-10-25 20:00:00 -05:00
# Deselect socket tests on Darwin because it hits the path length limit for a Unix domain socket
2021-03-08 22:52:46 +01:00
disabledTests = lib.optionals stdenv.isDarwin [ "api_test" "stream_response" "socket_file" ];
2017-01-27 11:32:28 +01:00
dontUseSetuptoolsCheck = true;
2019-12-09 22:34:21 -08:00
meta = with lib; {
2017-01-27 11:32:28 +01:00
description = "An API client for docker written in Python";
2019-10-14 21:13:49 -07:00
homepage = "https://github.com/docker/docker-py";
2017-01-27 11:32:28 +01:00
license = licenses.asl20;
2019-06-19 17:44:24 -07:00
maintainers = with maintainers; [ jonringer ];
2017-01-27 11:32:28 +01:00
};
}