3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/docker/default.nix

51 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, isPy27
2019-07-29 22:12:38 +01:00
, backports_ssl_match_hostname
, mock
, paramiko
, pytestCheckHook
2019-07-29 22:12:38 +01:00
, requests
, six
, websocket-client
2017-01-27 10:32:28 +00:00
}:
2019-06-20 01:44:24 +01:00
2017-01-27 10:32:28 +00:00
buildPythonPackage rec {
pname = "docker";
2021-07-16 00:15:26 +01:00
version = "5.0.0";
2017-01-27 10:32:28 +00:00
src = fetchPypi {
inherit pname version;
2021-07-16 00:15:26 +01:00
sha256 = "sha256-PovEdTTgypMx1ywy8ogbsTuT3tC83qs8gz+3z2HAqaU=";
2017-01-27 10:32:28 +00:00
};
nativeBuildInputs = lib.optional isPy27 mock;
2017-01-27 10:32:28 +00:00
propagatedBuildInputs = [
2019-10-15 05:13:49 +01:00
paramiko
requests
2019-10-15 05:13:49 +01:00
six
websocket-client
] ++ lib.optional isPy27 backports_ssl_match_hostname;
2017-01-27 10:32:28 +00:00
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 [ "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 05:13:49 +01:00
homepage = "https://github.com/docker/docker-py";
2017-01-27 10:32:28 +00:00
license = licenses.asl20;
2019-06-20 01:44:24 +01:00
maintainers = with maintainers; [ jonringer ];
2017-01-27 10:32:28 +00:00
};
}