diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2019-12-09 22:34:21 -0800 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2019-12-10 13:16:51 -0800 |
commit | a87c803cf980272314fb4877047af6006f039bf7 (patch) | |
tree | 936f88e8118b2e2b0a3f7c94e2022c204ac5c77d /pkgs/development/python-modules/docker | |
parent | 2e44944de5c396c0e739219b4efd1eb0f4e8601f (diff) | |
download | nixlib-a87c803cf980272314fb4877047af6006f039bf7.tar nixlib-a87c803cf980272314fb4877047af6006f039bf7.tar.gz nixlib-a87c803cf980272314fb4877047af6006f039bf7.tar.bz2 nixlib-a87c803cf980272314fb4877047af6006f039bf7.tar.lz nixlib-a87c803cf980272314fb4877047af6006f039bf7.tar.xz nixlib-a87c803cf980272314fb4877047af6006f039bf7.tar.zst nixlib-a87c803cf980272314fb4877047af6006f039bf7.zip |
python3Packages.docker: fix darwin tests
Diffstat (limited to 'pkgs/development/python-modules/docker')
-rw-r--r-- | pkgs/development/python-modules/docker/default.nix | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/docker/default.nix b/pkgs/development/python-modules/docker/default.nix index 2e0dd468325e..3d4a73bc969e 100644 --- a/pkgs/development/python-modules/docker/default.nix +++ b/pkgs/development/python-modules/docker/default.nix @@ -1,8 +1,9 @@ -{ stdenv, buildPythonPackage, fetchPypi, isPy27 +{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27 , backports_ssl_match_hostname , mock , paramiko , pytest +, pytestCheckHook , requests , six , websocket_client @@ -17,25 +18,25 @@ buildPythonPackage rec { sha256 = "1hdgics03fz2fbhalzys7a7kjj54jnl5a37h6lzdgym41gkwa1kf"; }; + nativeBuildInputs = [ + pytestCheckHook + ] ++ lib.optional isPy27 mock; + propagatedBuildInputs = [ paramiko requests six websocket_client - ] ++ stdenv.lib.optional isPy27 backports_ssl_match_hostname; - - checkInputs = [ - mock - pytest - ]; + ] ++ lib.optional isPy27 backports_ssl_match_hostname; - # Other tests touch network + pytestFlagsArray = [ "tests/unit" ]; # Deselect socket tests on Darwin because it hits the path length limit for a Unix domain socket - checkPhase = '' - ${pytest}/bin/pytest tests/unit/ ${stdenv.lib.optionalString stdenv.isDarwin "--deselect=tests/unit/api_test.py::TCPSocketStreamTest"} - ''; + disabledTests = lib.optionals stdenv.isDarwin [ "stream_response" "socket_file" ]; + + # skip setuptoolsCheckPhase + doCheck = false; - meta = with stdenv.lib; { + meta = with lib; { description = "An API client for docker written in Python"; homepage = "https://github.com/docker/docker-py"; license = licenses.asl20; |